Question for pros - Continues form

Phalanx

Registered User.
Local time
Today, 18:30
Joined
Dec 29, 2004
Messages
12
I Have a continues form designed with a 2 textboxs within it, I've attached a button that suppose to run a query on the record those textboxs are attached to (lets say record ID number is 10, textbox1 contains name: Jorj textbox2 contains last name: Bush) - the query get those fields - 10, jorj and bush and do something with them...

how am I supposed to do this?
 
Reference the form fields in the query:

Where YourField = Forms!frmName!ctlName AND YourOtherField = Forms!frmName!ctlNameOther;

If the form is a subform then:

Where YourField = Forms!frmName!sfrmName.Form!ctlName AND YourOtherField = Forms!frmName!sfrmName.Form!ctlNameOther;
 

Users who are viewing this thread

Back
Top Bottom