I have a form I want to close when I open another. In the form I want to close I have an ID number that is being passed to a filter query that is used in the form that should open.
I have tried alot of things that don't seem to work. I know when you close a form, the code basically stops. That seems to be what is happening. I have tried various combination of code:
Dim strFormName As String
strFormName = "frmCallSearch"
DoCmd.Close acForm, strFormName
Docmd.Openform"frmSeachResults"
I have tried alot of things that don't seem to work. I know when you close a form, the code basically stops. That seems to be what is happening. I have tried various combination of code:
Dim strFormName As String
strFormName = "frmCallSearch"
DoCmd.Close acForm, strFormName
Docmd.Openform"frmSeachResults"