Hi Guys
I have two command Buttons on two different forms that access the same form "fDcust"
One command button (On the Main Menu Form)
One Command Button on the (Search Enquiry Form)
The Main Menu CmdBtn is as follows:
When "fDcust" opens from the Main Menu, it does so to a new record, but!
In the Form Open Event I have the following:
The problem now is, when I open "fDCust" from my Search Enquiry form:
It goes to a new record instead of going to the required record.
Can I open the same form with separate Open Arguments from two different Command Buttons?
TIA
Mark.
PS: I originally had a New Record Command button in fDcust, but! I deleted it as I wanted the form to open to a new record when it was accessed from the Main Menu.
I have two command Buttons on two different forms that access the same form "fDcust"
One command button (On the Main Menu Form)
One Command Button on the (Search Enquiry Form)
The Main Menu CmdBtn is as follows:
Code:
Private Sub lBtnEdit_Click()
DoCmd.OpenForm "fDcust", , , , , acDialog
End Sub
When "fDcust" opens from the Main Menu, it does so to a new record, but!
In the Form Open Event I have the following:
Code:
Private Sub Form_Open(Cancel As Integer)
With Me
.Move Left:=1500, Top:=2000, Width:=12000, Height:=6500
End With
DoCmd.GoToRecord , , acNewRec
End Sub
The problem now is, when I open "fDCust" from my Search Enquiry form:
It goes to a new record instead of going to the required record.
Can I open the same form with separate Open Arguments from two different Command Buttons?
TIA
Mark.
PS: I originally had a New Record Command button in fDcust, but! I deleted it as I wanted the form to open to a new record when it was accessed from the Main Menu.