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 sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Compare value in FE table with value in BE table via code

Status
Not open for further replies.

Tarnish

Technical User
Nov 13, 2006
221
US
Hi all,

I need to compare a value in a table on the front end of a db with a value in a copy of the same table (but with a different name) on the back end. I have the back end table linked in the front end file.

I could easily do it using a form based on a query, but I want this code to run via the load event of a form that's already developed and I'm drawing a blank.

All I'm going to do is run an If/Then statement based on the value of the front end table field compared to the value of the backend table field. Both tables have just one record and one field.

Please "fill in the blank"!

Thanks,
T
 
Code:
if dlookup("fieldname","tablename")=dlookup("fieldname","BEtablename") then

     .....
Else
     ..........
End if
 
pwise,

Thanks...sometimes the ole' memory ain't what it use to be!

T
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top