hi all
I have set up the normal search command button but want to add a line in (I will only ever be searching from this field)
Private Sub findrecord_Click()
On Error GoTo Err_findrecord_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_findrecord_Click:
Exit Sub
Err_findrecord_Click:
MsgBox Err.Description
Resume Exit_findrecord_Click
End Sub
"Subject" field - has text up to 100 characters
so line to read as normal search eg either part or full but I want to code it in rather than clicking into the field and going search - after which line do I add it.
cheers
Dianne![Smile :) :)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
I have set up the normal search command button but want to add a line in (I will only ever be searching from this field)
Private Sub findrecord_Click()
On Error GoTo Err_findrecord_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_findrecord_Click:
Exit Sub
Err_findrecord_Click:
MsgBox Err.Description
Resume Exit_findrecord_Click
End Sub
"Subject" field - has text up to 100 characters
so line to read as normal search eg either part or full but I want to code it in rather than clicking into the field and going search - after which line do I add it.
cheers
Dianne