Syntax help please?

WinDancer

Registered User.
Local time
Yesterday, 19:19
Joined
Oct 29, 2004
Messages
290
I am trying to fill a numeric field on an open form from an unrelated numeric field in a closed unrelated table.

I keep getting an 'Object Required' error.

Can you see the problem with this code?

Forms![frmOKtoClose?].Text92 = Tables!tblSurveyResultsCount! [CountofChange?]

Thanks,
Dave
 
You can't refer to a table that way. You'll either need to open a recordset on the table or use DLookup to get the value.
 
Cool- thanks! I will go look at the dlookup function again.
 
Here is the code that works correctly:
=DLookUp("[Countofchange?]","[tblSurveyResultsCount]")

Thanks, again, guys :)
 

Users who are viewing this thread

Back
Top Bottom