Rakier
Registered User.
- Local time
- Today, 07:22
- Joined
- Mar 21, 2002
- Messages
- 75
This may be a simple problem, but I'm stuck right now.
I have two different user forms. They each have a text box called strSearchCriteria. What I want to do is run a query based on the value of the strSearchCriteria box. I further want to limit the results of the query to be items that are used by the user.
To further explain:
FrmUser1 is for the user who will have an ID of 1 and frmUser2 is the form for the user with an ID of 2.
I can build individual queries for each of the user forms and they work fine. However, I have 3 more users and was hoping to limit the number of queries I had to build.
Is there away to pass the form name to the query? Right now, the criteria field is set like [forms]![frmUser1].[numID]. However, I would like to use the same query for all of the forms since they look up similar information dependant on what form they are being generated from.
Any ideas?
I have two different user forms. They each have a text box called strSearchCriteria. What I want to do is run a query based on the value of the strSearchCriteria box. I further want to limit the results of the query to be items that are used by the user.
To further explain:
FrmUser1 is for the user who will have an ID of 1 and frmUser2 is the form for the user with an ID of 2.
I can build individual queries for each of the user forms and they work fine. However, I have 3 more users and was hoping to limit the number of queries I had to build.
Is there away to pass the form name to the query? Right now, the criteria field is set like [forms]![frmUser1].[numID]. However, I would like to use the same query for all of the forms since they look up similar information dependant on what form they are being generated from.
Any ideas?