I have DoCmd.OpenForm hundreds of places in my application but for some reason it doesn't not work properly one of my most critical forms.
The above does not open to the record i.e. "ID", form opens to a new record. I have some OnCurrent code that does some evaluations and ID = null. So i know for some reason ID is not being passed to the form filter.
If i do the above, essentially opening the form without specifying which record THEN anther DoCmd.OpenForm with where clause it opens to the record but also creates another empty record...i assume on the first DoCmd.OpenForm.
This is the only time i've seen something like this.
Code:
DoCmd.OpenForm "frmForm", acNormal, , "ID=" & Me.ID
Code:
DoCmd.OpenForm "frmForm", acNormal
DoCmd.OpenForm "frmForm", acNormal, , "ID=" & Me.ID
This is the only time i've seen something like this.