Ok so I am trying to open a form with another form and have it pull the record that corresponds to the date selected on the first form. I am trying to use the following, but it is just opening a blank/new record on the form.
I would also like to figure out how to have it open a blank record if the record doesn't exist in the table. Any help is appreciated!
Dan
Code:
Private Sub cmdOpen_Click()
DoCmd.OpenForm "fData", , , "[dDate]=" & Me!txtDate
End Sub
I would also like to figure out how to have it open a blank record if the record doesn't exist in the table. Any help is appreciated!
Dan