How search a record in a table by using VBA ?

M

mac

I am going to create a form where user will enter part number and then click
ok. Ok button should have codes to find the record in the table for that
particular part number.

What is the syntax for find a record ?

Thanks.
 
G

Graham R Seach

<<...the easiest is the "dlookup" command>>
And it is the most expensive!

Check the online Help for the FindFirst and Seek methods. You might also get
some joy from simply filtering a Recordset (I assume you actually want to do
something with the record(s) you find).

Regards,
Graham R Seach
Microsoft Access MVP
Sydney, Australia

Microsoft Access 2003 VBA Programmer's Reference
http://www.wiley.com/WileyCDA/WileyTitle/productCd-0764559036.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top