Im trying to make a pop-up window on open that will search for the conformation number of an item and take them right to that record and load all the stuff in the form that goes with it. How can I go about doing this?
hmm, tried that but couldn't get it to work.
This is what I have so far:
Private Sub Form_Open(Cancel As Integer)
DoCmd.GoToRecord acDataForm, "Change Board Records", acNewRec
End Sub
It pops up the window and takes the number(ex:w0008) but when it opens the form it doesnt display what the entry. You know if I'm missing something or not?
You are opening the form for input only. Get rid of the acNewRec to eliminate that.
Also, you need the where clause without the where needs to be the fourth parameter and you need a conditional operand like “key = ‘change’”, ie
Docmd.openform “name:,,, “key = ‘change’”.
I'm using GotoRecord because I need the form to open up to the specified record in the input window. I'll try the openform way though hadn't thought of that.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.