I have a form whose recordsource is set to
SELECT * FROM [Order]
which I want to change to a single specific record using while testing) as a click event on another form using:
Dim SQL As String
SQL = "SELECT * FROM [Order] WHERE ID = 72"
Forms![Review Order].RecordSource = SQL
DoCmd.OpenForm "Review Order"
I have tried putting this code in the "Review Order" forms form_load and form_open events but the form refuses to display.
What am I doing wrong?
Thanks!
SELECT * FROM [Order]
which I want to change to a single specific record using while testing) as a click event on another form using:
Dim SQL As String
SQL = "SELECT * FROM [Order] WHERE ID = 72"
Forms![Review Order].RecordSource = SQL
DoCmd.OpenForm "Review Order"
I have tried putting this code in the "Review Order" forms form_load and form_open events but the form refuses to display.
What am I doing wrong?
Thanks!