Keith Nichols
Registered User.
- Local time
- Today, 23:53
- Joined
- Jan 27, 2006
- Messages
- 431
Hi Guys,
Is there any way to set the "Match" criteria to "Any part of field" in VBA?
The database I have holds projects with fairly long and iregular names. When searching, you never know where the key word will be until you see the project you are looking for. Some users who have to navigate to many records are finding it a nuisance having to click the match list every time.
I have partly resolved the problem by filtering and ordering the project details form to match the weekly report used by managers. This has greatly reduced the requirement to search, but I would like to know if this is possible.
The code below is from the standard record navigation/find record button.
Cheers,
Keith.
Is there any way to set the "Match" criteria to "Any part of field" in VBA?
The database I have holds projects with fairly long and iregular names. When searching, you never know where the key word will be until you see the project you are looking for. Some users who have to navigate to many records are finding it a nuisance having to click the match list every time.
I have partly resolved the problem by filtering and ordering the project details form to match the weekly report used by managers. This has greatly reduced the requirement to search, but I would like to know if this is possible.
The code below is from the standard record navigation/find record button.
Code:
Private Sub cmd_Find_Record_Click()
On Error GoTo Err_cmd_Find_Record_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_cmd_Find_Record_Click:
Exit Sub
Err_cmd_Find_Record_Click:
MsgBox Err.Description
Resume Exit_cmd_Find_Record_Click
End Sub
Cheers,
Keith.