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

compare strings 1

Status
Not open for further replies.

hoofit

Technical User
Nov 20, 2005
343
US
Good afternoon,
I would like to compare the string contents of an unbound textbox to the string contents of a field in a table so I can produce my own “duplicate entry” error. The field name is ‘PMName’ in a table named ‘PM’ and it is the primary key. I believe I need a DLookup function to search the field but I’m not sure of where to start. Something that ends up like (pseudocode) if textbox 1 = fieldEntry then msgbox blah blah blah.Can someone give me a push?

Thank you
 
Try this:
DLookup Function Examples
faq705-4978

 
Thank you Remou, hits the spot.

-hoofit
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top