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

Comparing textbox values to table records.

Status
Not open for further replies.

Porsche996GT2

Programmer
Oct 13, 2004
41
US
First of all, I'm sorry if this sounds stupid as I've just started programming in Access. Anyway, as the subject goes, how do I compare textbox values to table records? Do I have get the table rows and store them in an array first? If so, how do you compare the textbox value to any of the items in the array? Any help would be greatly appreciated.

Thanks!
 
Take a look at the DLookUp function.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Hello PHV,

Thanks for your reply. I checked the VLookup function and it should theoretically do what I want to. However, it's giving me a "Runtime Error 2001: You cancelled the previous operation." Do you know what I'm doing wrong?

Thanks,

Marvin
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top