hardhitter06
Registered User.
- Local time
- Today, 15:56
- Joined
- Dec 21, 2006
- Messages
- 600
Hi All,
Access 2003.
I am trying to accomplish a particular search using three text boxes on my main form.
I have three fields: "Project", "Task" and "Award". I would like to set up three text fields on my main form with a command button so that when a user fills in these three fields and hits the "Search" command button, the proper results are displayed.
The output I am trying to receive is this:
I am trying to locate an additional field in my main table called "BoxNo" to return me the record searched (which is a combination of Project, Task and Award) and what Box this record resides in.
So on my output screen, I will have 4 fields: Project, Task, Award and BoxNo. If the record is big enough, it might reside in a combination of boxes that I need to display.
With that said, I have done something similar to this type of set up and search:
I had a date range search with Text14 and Text17 being the Search criteria inputs.
In this new scenerio, it is very similar, but I need to write the code that combines all three boxes in the search and outputs the BoxNo(s).
So that is the exact part I need help with, I know how to set up the Search Criteria Text Boxes, the Macro Search Command button and the Query n Form to display the data...I just need help with this code.
Thank you in advance.
Josh
Access 2003.
I am trying to accomplish a particular search using three text boxes on my main form.
I have three fields: "Project", "Task" and "Award". I would like to set up three text fields on my main form with a command button so that when a user fills in these three fields and hits the "Search" command button, the proper results are displayed.
The output I am trying to receive is this:
I am trying to locate an additional field in my main table called "BoxNo" to return me the record searched (which is a combination of Project, Task and Award) and what Box this record resides in.
So on my output screen, I will have 4 fields: Project, Task, Award and BoxNo. If the record is big enough, it might reside in a combination of boxes that I need to display.
With that said, I have done something similar to this type of set up and search:
Code:
stLinkCriteria = "[DateOfTransaction] >= #" & Forms!frmRecycledDashboard.Text14 & "# And [DateOfTransaction] <= #" & Forms!frmRecycledDashboard!Text17 & "#"
DoCmd.OpenForm "frmRecycledDateRangeSearch", acNormal, , stLinkCriteria
Forms!frmRecycledDateRangeSearch.Text34 = "You have Searched by Dates " & Me.Text14 & " - " & Me.Text17
I had a date range search with Text14 and Text17 being the Search criteria inputs.
In this new scenerio, it is very similar, but I need to write the code that combines all three boxes in the search and outputs the BoxNo(s).
So that is the exact part I need help with, I know how to set up the Search Criteria Text Boxes, the Macro Search Command button and the Query n Form to display the data...I just need help with this code.
Thank you in advance.
Josh