Greetings all - it's been a while.
I have a form designed to show records of a customer's machines. I open the form from another form using an SQL string to show the customer's info required. This has a global variable set as SqlSet2=true. The form on open checks the sqlset and opens to display the data.
I would like to use the same form accessed from a different form for data entry only, this would have a different SQL string as recordset, with a different global variable set as True.
I have tried using the instruction DoCmd.OPENFORM (frmName,,,,acFormAdd) but this refuses to compile, insisting on an = sign.
Unless one of you experts can help I am going to have to use a duplicate form.
Thanks
Telephoto
I have a form designed to show records of a customer's machines. I open the form from another form using an SQL string to show the customer's info required. This has a global variable set as SqlSet2=true. The form on open checks the sqlset and opens to display the data.
I would like to use the same form accessed from a different form for data entry only, this would have a different SQL string as recordset, with a different global variable set as True.
I have tried using the instruction DoCmd.OPENFORM (frmName,,,,acFormAdd) but this refuses to compile, insisting on an = sign.
Unless one of you experts can help I am going to have to use a duplicate form.
Thanks
Telephoto