F
Flightdisc
Hello,
I'm getting this error from the code below. Can someone explain why!
run-time error '2495':
The action or method requires a Table Name argument.
I have a combo box named cboTables with the following as Value List:
1;Cookies;2;Candy;3;Pie;4;Cake
Then I have this sub with code:
Private Sub cboTables_AfterUpdate()
Dim strRpt As String
Select Case Me.cboTables.Column(1)
Case 1: strRpt = "Cookies"
Case 2: strRpt = "Candy"
Case 3: strRpt = "Pie"
Case 2: strRpt = "Cake"
End Select
DoCmd.OpenTable strRpt, acViewNormal
End Sub
I'm getting this error from the code below. Can someone explain why!
run-time error '2495':
The action or method requires a Table Name argument.
I have a combo box named cboTables with the following as Value List:
1;Cookies;2;Candy;3;Pie;4;Cake
Then I have this sub with code:
Private Sub cboTables_AfterUpdate()
Dim strRpt As String
Select Case Me.cboTables.Column(1)
Case 1: strRpt = "Cookies"
Case 2: strRpt = "Candy"
Case 3: strRpt = "Pie"
Case 2: strRpt = "Cake"
End Select
DoCmd.OpenTable strRpt, acViewNormal
End Sub