Tammysdatabase
Member
- Local time
- Today, 13:14
- Joined
- Mar 18, 2020
- Messages
- 34
Hi all,
I have developed a PO system in my database. It's all working well, but I have a "Search POs" form that i've developed where the user can select different comboboxes to search the PO items in different ways. I have used an If LEN() statement in the "Items" combobox and this works well for finding records that have a certain string in them, however, I would like all the records with this certain string listed in the datasheet portion of the split form.
For example:
If I choose to search by item, I engage the combobox and type in "Dover White". The combobox finds all the possible records with Dover White in them and I can choose which record I want to search by. This is great. But.....I would like to just search all the records by Dover White and have it display all the records on the datasheet instead of just within the confines of the combobox dropdown. This way the user can see all records and choose which PO they would like to look at by selecting the hyperlink to open the PO form to that record.
The code I used for the combobox in the KeyUp Event is:
Is there a way to adjust this to be able to type in Dover White and have all the records with Dover White show up in the datasheet (Split form)?
We are switching from an internet program to this access database and of course the internet program will do this type of search so the expectation is that the new database will also do this.
Any help would be appreciated.
Tammy
I have developed a PO system in my database. It's all working well, but I have a "Search POs" form that i've developed where the user can select different comboboxes to search the PO items in different ways. I have used an If LEN() statement in the "Items" combobox and this works well for finding records that have a certain string in them, however, I would like all the records with this certain string listed in the datasheet portion of the split form.
For example:
If I choose to search by item, I engage the combobox and type in "Dover White". The combobox finds all the possible records with Dover White in them and I can choose which record I want to search by. This is great. But.....I would like to just search all the records by Dover White and have it display all the records on the datasheet instead of just within the confines of the combobox dropdown. This way the user can see all records and choose which PO they would like to look at by selecting the hyperlink to open the PO form to that record.
The code I used for the combobox in the KeyUp Event is:
Code:
If Len(Me.Combo98.Text) > 2 Then
Me.Combo98.RowSource = "SELECT Catalogue.Item From Catalogue WHERE Catalogue.Item LIKE '*" & Me.Combo98.Text & "*'"
Me.Combo98.Dropdown
Else
Me.Combo98.RowSource = ""
End If
Is there a way to adjust this to be able to type in Dover White and have all the records with Dover White show up in the datasheet (Split form)?
We are switching from an internet program to this access database and of course the internet program will do this type of search so the expectation is that the new database will also do this.
Any help would be appreciated.
Tammy