K
Kgwill85
I am trying to run a macro that takes information from 2 separate
fields in one form and then searches a table for the record and then
it populates another form.
The first form only has 2 fields in it. I have one command button
also. For the command button I set the "OnClick" to a macro that
opens up another form and also finds the record that was chosen from
the 1st form.
The FindRecord action is set up like this
Find What:=[PARID]
Match: Whole Field
Match Case: No
Search: All
Search as Formatted: No
Only Current Field: Yes
Find First: Yes
The search form has two combo boxes that display information from my
table. When I click my command button the macro finds the record for
PARID which is what I'm looking for, however I cannot figure out how
to incorporate the other combo box into the macro correctly. I want
the user to be able to search both combo boxes seperately in case they
do not know the correct information for both boxes.
The name of my other combo box is BO_Project_Name. I tried to put
this in the Find What section but it didn't work...
=[PARID]or[BO_Project_Name]
Thanks in advance
fields in one form and then searches a table for the record and then
it populates another form.
The first form only has 2 fields in it. I have one command button
also. For the command button I set the "OnClick" to a macro that
opens up another form and also finds the record that was chosen from
the 1st form.
The FindRecord action is set up like this
Find What:=[PARID]
Match: Whole Field
Match Case: No
Search: All
Search as Formatted: No
Only Current Field: Yes
Find First: Yes
The search form has two combo boxes that display information from my
table. When I click my command button the macro finds the record for
PARID which is what I'm looking for, however I cannot figure out how
to incorporate the other combo box into the macro correctly. I want
the user to be able to search both combo boxes seperately in case they
do not know the correct information for both boxes.
The name of my other combo box is BO_Project_Name. I tried to put
this in the Find What section but it didn't work...
=[PARID]or[BO_Project_Name]
Thanks in advance