G
Guest
This will probably sound rather dumb, but I'm having a problem getting a form
to open to a specific record.
I do a search based on a query and the query returns the record(s) to a
form. I have a command button to open the selected record, but instead it
opens a new record which is not what I need. Suggestions?
Private Sub cmdOpenRecord_Click()
Dim stdocname As String
Dim stlinkcriteria As String
stdocname = "f_Projects"
DoCmd.OpenForm stdocname, , , where = Me![ProjectNo] = "", , , stlinkcriteria
End Sub
to open to a specific record.
I do a search based on a query and the query returns the record(s) to a
form. I have a command button to open the selected record, but instead it
opens a new record which is not what I need. Suggestions?
Private Sub cmdOpenRecord_Click()
Dim stdocname As String
Dim stlinkcriteria As String
stdocname = "f_Projects"
DoCmd.OpenForm stdocname, , , where = Me![ProjectNo] = "", , , stlinkcriteria
End Sub