Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating Updating on a Subform

Status
Not open for further replies.

Dorv

Technical User
Apr 18, 2005
5
US
All,

I'm creating a Performance Tracking database at work, for disiplanary actions...

When on the subform, you update the field VioCode I want it to check that value against a table called PtsSource, and find the value of SourcePoints where VioCode (from the form) is equal to SourceCode (from the table).

(VioTableForm) is the subform

I had a macro created that had
SetValue
Item - [Forms]![VioTableForm]![Points]
Expression - DLookUp("[SourcePoints]","PtsSource",[PointsSource]![SourceCode]=[Forms]![VioTableForm]![VioCode])

HELP!!!
 
DLookUp("SourcePoints","PtsSource","SourceCode=[Forms]![name of main form]![VioTableForm].Form![VioCode]")

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top