Query to Form View

E

Eric Starn

I have created a table that holds records of assets for my company. I have
also created a form for data entry so a user can add a new asset to the
table. I have created queries to look up records in that table for editing
purposes.
My Question

Is there away to run a query for a specific record in the asset table and
have it open up in a form like my data entry form?

I will appreciate any help I can get.
 
V

vanderghast

You can use the whereCondition argument of the DoCmd.OpenForm:


DoCmd.OpenForm "form1", whereCondition:= "ClientID=" & whichClientID



Note the special syntax := which allows to use named arguments.



Vanderghast, Access MVP
 

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