OK, my knowledge of VBA is EXTREMELY limited, and I need help, please. I have an existing database form where a command button already exists that searches for data on any given field. Here's the "event procedure" text that shows up for the "on click" properties (I didn't create this):
***********************************************
Sub Find_Record_Click()
On Error GoTo Err_Find_Record_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Find_Record_Click:
Exit Sub
Err_Find_Record_Click:
MsgBox Err.Description
Resume Exit_Find_Record_Click
End Sub
************************************************
How can I modify this (or create something completely new) so that when the command button is clicked, it not only searches for text within the field, but narrows the search down to records that were entered within a given date range?
I do have a "DATE ENTERED" field.
Thanks for any and all help.
***********************************************
Sub Find_Record_Click()
On Error GoTo Err_Find_Record_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Find_Record_Click:
Exit Sub
Err_Find_Record_Click:
MsgBox Err.Description
Resume Exit_Find_Record_Click
End Sub
************************************************
How can I modify this (or create something completely new) so that when the command button is clicked, it not only searches for text within the field, but narrows the search down to records that were entered within a given date range?
I do have a "DATE ENTERED" field.
Thanks for any and all help.