silentwolf
Active member
- Local time
- Today, 09:00
- Joined
- Jun 12, 2009
- Messages
- 644
Hi again,
sorry just came accross an error in my openForm Event
I open another form within my application
However the Orders Form opens after I have been asked to enter an CustomerID "Parameter" which I left blank and continioued to run my code.
The Orders Form opens with the correct CustomerID.
How can I get rid of this dialog?
Can't seam to find where the Error is causing this.
Has someone an idea where I can find it?
Checked the Controls on each form but they seam to be fine.
sorry just came accross an error in my openForm Event
I open another form within my application
Code:
If IsNull(Forms!frmCustomers!CustomerID) Then
MsgBox "Bitte wählen Sie zunächst einen Datensatz aus."
Exit Sub
End If
DoCmd.OpenForm "frmOrders", datamode:=acFormEdit, _
WindowMode:=acNormal, WhereCondition:="CustomerID=" _
& Forms!frmCustomers!CustomerID
Me.Requery
DoCmd.OpenForm "frmOrders", acNormal
DoCmd.GoToRecord , , acNewRec
Forms![frmOrders].Form![CustomerCombo] = Me.CustomerID
However the Orders Form opens after I have been asked to enter an CustomerID "Parameter" which I left blank and continioued to run my code.
The Orders Form opens with the correct CustomerID.
How can I get rid of this dialog?
Can't seam to find where the Error is causing this.
Has someone an idea where I can find it?
Checked the Controls on each form but they seam to be fine.