Need Help

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

OK. I need a macro, I think, when I click on it on a form
from a button I want it to run a query and transfer data
from one field of the query to my form. How is this
possible. Please reply asap coz me assignments in very
soon. lol
 
Hello Paul,

You need to use Dfunction, like: DLookup()

OnClick event for the button:
YouForm.YourField = DLookup
("FieldName","QueryOrTableName", "WhereStatement")
 

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

Back
Top