peterbowles
Registered User.
- Local time
- Today, 12:35
- Joined
- Oct 11, 2002
- Messages
- 163
I am using this code in a macros where condition
to open a form
Open Peopleform WHERE
Forms![Students]![StudentNumber] = [Student]![StudentNumber]
Or
Forms![Students]![ProgramNumber] = [Program]![ProgramNumber]
Studentnumber is txtbox on the search form
ProgramNumber is a txt box on the search form
If both txtboxes = a record in the Peopleform then the form is opened at that record
The problem is that the search form looks at both txtboxes and find recors that match both individual txtboxs
How do I say this
If both search criteria are used open the for WHERE conditions = a record in the form
or If just one search criteria is used open the form WHERE that condition = a record in a table
Can anyone please help me
Thankyou
to open a form
Open Peopleform WHERE
Forms![Students]![StudentNumber] = [Student]![StudentNumber]
Or
Forms![Students]![ProgramNumber] = [Program]![ProgramNumber]
Studentnumber is txtbox on the search form
ProgramNumber is a txt box on the search form
If both txtboxes = a record in the Peopleform then the form is opened at that record
The problem is that the search form looks at both txtboxes and find recors that match both individual txtboxs
How do I say this
If both search criteria are used open the for WHERE conditions = a record in the form
or If just one search criteria is used open the form WHERE that condition = a record in a table
Can anyone please help me
Thankyou