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 » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Use Parameter Data to populate a form field



 
 
Thread Tools Display Modes
  #1  
Old May 7th, 2010, 11:09 PM posted to microsoft.public.access.forms
JudyKemp
external usenet poster
 
Posts: 2
Default Use Parameter Data to populate a form field

I am trying to figure out how to take the data I enter from a parameter query
to populate a field on a form.
  #2  
Old May 8th, 2010, 01:51 AM posted to microsoft.public.access.forms
KenSheridan via AccessMonster.com
external usenet poster
 
Posts: 1,610
Default Use Parameter Data to populate a form field

Include the parameter(s) as a computed column(s) in the query, e.g.

PARAMETERS
[Enter start date:] DATETIME,
[Enter end date:] DATETIME;
SELECT SomeField, SomeOtherField,
[Enter start date:] AS StartDate,
[Enter end date:] AS EndDate
FROM SomeTable
WHERE DateField BETWEEN
[Enter start date:] AND [Enter end date:];

In the above example you can then bind text box controls on the form to the
StartDate and EndDate fields.

Ken Sheridan
Stafford, England

JudyKemp wrote:
I am trying to figure out how to take the data I enter from a parameter query
to populate a field on a form.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...forms/201005/1

 




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 04:14 PM.


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