Darrenc
Registered User.
- Local time
- Today, 14:44
- Joined
- Apr 30, 2004
- Messages
- 62
I've somehow managed to break a tiny bit of code that was working fine, i've been racking my brains on what i could have done to break it.
My code is this
Before i had a couple of days off, this code was working fine, i would click the button and the SupCustomerID would automaticly filled in by the CustomerID field and then link together.
Now for some reason the SupCustomerID field is not being filled in.
Has anyone got any Idea's how i've managed to break this?
My code is this
Code:
Private Sub cmdNewSupQuery_Click()
On Error GoTo Err_cmdNewSupQuery_Click
Dim stDocName As String
Dim stLinkCriteria As String
DoCmd.OpenForm "frmSupplierQuery", , , "[SupCustomerID]=" & Me.CustomerID
stDocName = "frmSupplierQuery"
stLinkCriteria = "[SupCustomerID]=" & Me![CustomerID]
DoCmd.OpenForm stDocName, , , stLinkCriteria
Exit_cmdNewSupQuery_Click:
'Exit Sub
Err_cmdNewSupQuery_Click:
MsgBox Err.Description
Resume Exit_cmdNewSupQuery_Click
End Sub
Before i had a couple of days off, this code was working fine, i would click the button and the SupCustomerID would automaticly filled in by the CustomerID field and then link together.
Now for some reason the SupCustomerID field is not being filled in.
Has anyone got any Idea's how i've managed to break this?
Last edited: