G
Guest
Problem with syntax in filter
In form1 user click a name in listbox. This name is stored in a variable.
Then I want to open another form, where the variable decides which post is
shown.
Private Sub Elever_Click(Cancel As Integer)
Dim elev As Variant
elev = Me.Felt3.Value
DoCmd.OpenForm "Form 2", acPreview, , "Felt1 = 'elev'"
End Sub
"Felt1 = 'elev'" - This is the problem!
Sorry about my english - hope to hear from you...
In form1 user click a name in listbox. This name is stored in a variable.
Then I want to open another form, where the variable decides which post is
shown.
Private Sub Elever_Click(Cancel As Integer)
Dim elev As Variant
elev = Me.Felt3.Value
DoCmd.OpenForm "Form 2", acPreview, , "Felt1 = 'elev'"
End Sub
"Felt1 = 'elev'" - This is the problem!
Sorry about my english - hope to hear from you...