G
Guest
Private Sub Method_AfterUpdate()
I have a drop down list that lists the methods of payments, when you click
on one it should open the popup form (already coded) and all should be rosey.
Except its not, im getting the folllowing error message:
Error "94"
Invalide use of Null
this is the code that im using for the drop down list, ive used watches to
see the value of methodtype and setpped through the code so i can see that it
has the correct value but isnt doing what its supposed.
<!---
Dim methodtype As String
methodtype = Me![Method].Value
Select Case methodtype
Case Cash: DoCmd.OpenForm "Cash"
Case Credit_Card: DoCmd.OpenForm "Credit"
Case Cheque: DoCmd.OpenForm "cheque"
Case Direct_debit: DoCmd.OpenForm "DirectDebit"
Case Switch: DoCmd.OpenForm "Switch"
Case Else: MsgBox ("You must pick a Payment Method from the list")
End Select
End Sub
---!>
With regards (and much pleading for help)
Amit
I have a drop down list that lists the methods of payments, when you click
on one it should open the popup form (already coded) and all should be rosey.
Except its not, im getting the folllowing error message:
Error "94"
Invalide use of Null
this is the code that im using for the drop down list, ive used watches to
see the value of methodtype and setpped through the code so i can see that it
has the correct value but isnt doing what its supposed.
<!---
Dim methodtype As String
methodtype = Me![Method].Value
Select Case methodtype
Case Cash: DoCmd.OpenForm "Cash"
Case Credit_Card: DoCmd.OpenForm "Credit"
Case Cheque: DoCmd.OpenForm "cheque"
Case Direct_debit: DoCmd.OpenForm "DirectDebit"
Case Switch: DoCmd.OpenForm "Switch"
Case Else: MsgBox ("You must pick a Payment Method from the list")
End Select
End Sub
---!>
With regards (and much pleading for help)
Amit