I'm using Access 97.
I have a form which loads on startup. This form only serves the purpose of linking to parts on the database. Like a switchboard. Anyways, I want to add a search for record button on this form but I want the result to display on my main form. How do I set up this button so that it searches my records and displays the results on my main form in my database?
I assume there's a little code I need to add to this:
Private Sub Command37_Click()
On Error GoTo Err_Command37_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Command37_Click:
Exit Sub
Err_Command37_Click:
MsgBox Err.Description
Resume Exit_Command37_Click
End Sub
I guess I just need to tell the code where to look and where to display the results?
Hope this is enough info
Thanx
Gustavson
I have a form which loads on startup. This form only serves the purpose of linking to parts on the database. Like a switchboard. Anyways, I want to add a search for record button on this form but I want the result to display on my main form. How do I set up this button so that it searches my records and displays the results on my main form in my database?
I assume there's a little code I need to add to this:
Private Sub Command37_Click()
On Error GoTo Err_Command37_Click
Screen.PreviousControl.SetFocus
DoCmd.DoMenuItem acFormBar, acEditMenu, 10, , acMenuVer70
Exit_Command37_Click:
Exit Sub
Err_Command37_Click:
MsgBox Err.Description
Resume Exit_Command37_Click
End Sub
I guess I just need to tell the code where to look and where to display the results?
Hope this is enough info
Thanx
Gustavson