C
CJ
Hi Groupies
I use the following code on a command button to open a form
to a newly created record based on data input into a form.
stDocName = "frmWorkOrder"
stLinkCriteria = "[lngWOId]=" & Me![lngWOId]
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenForm stDocName, , , stLinkCriteria
My question is how do I open the form frmWorkOrder to the new record
but remove the form filter so that I can move to other records?
I have tried using DoCmd.OpenForm stDocName, , acEntire,
stLinkCriteria
but that just gives me an error message.
I use the following code on a command button to open a form
to a newly created record based on data input into a form.
stDocName = "frmWorkOrder"
stLinkCriteria = "[lngWOId]=" & Me![lngWOId]
DoCmd.RunCommand acCmdSaveRecord
DoCmd.OpenForm stDocName, , , stLinkCriteria
My question is how do I open the form frmWorkOrder to the new record
but remove the form filter so that I can move to other records?
I have tried using DoCmd.OpenForm stDocName, , acEntire,
stLinkCriteria
but that just gives me an error message.