T
tom
The following code asks for a parameter invoice number
and after plugging in the proper invoice number
the form will open as I want it to work.
I have tried all kinds of different permutations of this
code and nothing seems to work as I want.
Private Sub ListBoxName_DblClick(Cancel As Integer)
Dim sqlst As String
Dim sqlstmnt As String
sqlst = Me.ListBoxName.Column(0, 0)
sqlstmnt = "[IDNumber] = me.ListBoxName.[invoice number]"
DoCmd.OpenForm "FormName", , , sqlstmnt, , , ""
End Sub
and after plugging in the proper invoice number
the form will open as I want it to work.
I have tried all kinds of different permutations of this
code and nothing seems to work as I want.
Private Sub ListBoxName_DblClick(Cancel As Integer)
Dim sqlst As String
Dim sqlstmnt As String
sqlst = Me.ListBoxName.Column(0, 0)
sqlstmnt = "[IDNumber] = me.ListBoxName.[invoice number]"
DoCmd.OpenForm "FormName", , , sqlstmnt, , , ""
End Sub