Listbox Selection

A

Asif

I have a form with a List Box(lst_entry), upon clicking on an entry a
new form (frm_edit) should load up showing the details of the entry
selected in listbox.

In the "On Dbl Click" event I've used the following code;

Private Sub Lst_entry_DblClick(cancel As Integer)
DoCmd.OpenForm "frm_edit", , , "BINPROCESSID = " & List23.Column(0) &
" and BINPROCESSDate = " & List23.Column(1)
End Sub

However I'm getting the following error message every time I dbl click
on an item in the list;

Run-time error '3075': Syntax error (missing operator) in query
expression 'BINPROCESSID = 43 and BINPROCESSDate=16/03/07 15:11:06',

Any ideas what I'm doing wrong??

Thanks
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Listbox Selection 7
Listbox and Textbox 1
Listbox Selection 2
Subform with Macro 4
Listbox VBA Coding 7
Double click record go to form problem 3
Excel does not accept text format! 0
How to Link list Box with Form 1

Top