ScottBeatty
Registered User.
- Local time
- Today, 13:28
- Joined
- May 31, 2013
- Messages
- 65
Hey everyone, I am wondering if someone could help me. I have a master form for lack of a better phrase and 3 other forms that represent specific items in the original drop down box. In the master drop down box, I have all 50 states, and the 3 forms are for 3 specific states. Here's the code I have so far but when I save, it says "The 'OpenForm' macro action has an invalid value for the 'Where Condition' agrument."
Option Compare Database
Option Explicit
Private Sub State_AfterUpdate()
Select Case Me.State
Case "CA"
DoCmd.OpenForm "Auditor Form (CA)"
Case "MA"
DoCmd.OpenForm "Auditor Form (MA)"
Case "GA"
DoCmd.OpenForm "Auditor Form (GA)"
Case Else
'-- Do nothing
End Select
End Sub
Private Sub Combo100_AfterUpdate()
End Sub
Any help would be great! Thanks!
Option Compare Database
Option Explicit
Private Sub State_AfterUpdate()
Select Case Me.State
Case "CA"
DoCmd.OpenForm "Auditor Form (CA)"
Case "MA"
DoCmd.OpenForm "Auditor Form (MA)"
Case "GA"
DoCmd.OpenForm "Auditor Form (GA)"
Case Else
'-- Do nothing
End Select
End Sub
Private Sub Combo100_AfterUpdate()
End Sub
Any help would be great! Thanks!