how to call a form value to my query

  • Thread starter NeonSky via AccessMonster.com
  • Start date
N

NeonSky via AccessMonster.com

hello, would someone please tell me how to reference a form text box value as
a criteria in my query?

right now my criteria line reads =[Forms]![FormName]![FormTextboxName]![Value]


what am I missing here?

thank you!
 
J

John Spencer

Try

=[Forms]![FormName]![FormTextboxName]



'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
 
N

NeonSky via AccessMonster.com

Figured it out....

=Forms![formname]![controlname]

Where formname is the name of your form and controlname is the name of the
object which contains the value you are passing to your query. Thanks.
NeonSky said:
hello, would someone please tell me how to reference a form text box value as
a criteria in my query?

right now my criteria line reads =[Forms]![FormName]![FormTextboxName]![Value]

what am I missing here?

thank you!
 
N

NeonSky via AccessMonster.com

Thanks John, I think we posted at the same time :)

John said:
Try

=[Forms]![FormName]![FormTextboxName]

'====================================================
John Spencer
Access MVP 2002-2005, 2007-2009
The Hilltop Institute
University of Maryland Baltimore County
'====================================================
hello, would someone please tell me how to reference a form text box value as
a criteria in my query?
[quoted text clipped - 4 lines]
thank you!
 

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