I tried to do this and it sort of worked. When I was on the registration
form, I clicked the button and it took me to a claim for the same machine.
However, when I closed the claim form and went back to the registration form
to try it for another machine, it just took me to the same claim I had just
pulled up before. Also, on the first try (when it worked) it only took me to
the last claim that was entered for that machine.
I guess what I want it to do is upon the click event of the button, use a
filter to narrow down the claims to the ones that have that serial number
associated with them, and vice versa for the claim form. (i.e. take me to
the machine registration).
Its all about knowing the warranty history for a machine at the click of a
button, and knowing if the machine has been registered, also.
Thanks for your help.
Shannan
An***********@bcbsmn.com wrote:
I should clarify that code.
Private Sub MyButtonName_Click()
DoCmd.OpenForm "<type name of warrenty claim form here>", acNormal,
, "[<type name of text box containing serial number here>] = '" &
Forms!<type name of registration form here>!<type name of text box
containing serial number here> & "'"
End Sub
--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200511/1