Reference table field in Event Procedure

Len Boorman

Back in gainfull employme
Local time
Today, 07:58
Joined
Mar 23, 2000
Messages
1,927
I have a table with a single field that will only ever have one record.
Basically sequence is
All rows deleted
Series of queries run that result in the total number of duplicates found appended.(So there is only ever one row. Value may be null or >0

I now want to run some code on the after update event of a field on a form.

The code will go something like

If Table.fieldvalue>0 then
MsgBox etc
Else
End if

I am a greenhorn when it comes to figuring out how to reference the value of a field within a table.

Assistance appreciated

Len B
 
Would DLookUp suffice? If there's only ever one record, simply leave the criteria out:

DLookUp("FieldName","TableName")

HTH,

Matt.
 
Hi Matts

Looks good

Thanks

Len B
 

Users who are viewing this thread

Back
Top Bottom