A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Query to Form View



 
 
Thread Tools Display Modes
  #1  
Old July 9th, 2009, 04:01 PM posted to microsoft.public.access.queries
Eric Starn
external usenet poster
 
Posts: 45
Default Query to Form View

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.


  #2  
Old July 9th, 2009, 05:01 PM posted to microsoft.public.access.queries
vanderghast
external usenet poster
 
Posts: 593
Default Query to Form View

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


"Eric Starn" wrote in message
...
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.



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 01:01 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.