How to Link list Box with Form

G

ghost

Greeting,

I have a form for entering and search for info. In this form there are text
box for search and listbox for showing search results. What I want to do is
once search results appear, the user will dbl click on the results he wants
and the form fields show the details of that item. I put the following sql in
the form control source :
SELECT utilizing.* FROM utilizing;

And the following sql for list box
SELECT utilizing.idn, utilizing.founame, utilizing.proname,
utilizing.utilizdate, utilizing.lumpvalue, utilizing.notes FROM utilizing
WHERE (((utilizing.founame) Like "*" & forms!utilizing!serutill & "*"));

And on the event dbl click of the list box :
Me.RecordSource = "SELECT utilizing.idn, utilizing.founame,
utilizing.proname, utilizing.utilizdate, utilizing.lumpvalue, utilizing.notes
FROM utilizing WHERE (((utilizing.founame) Like " * " &
forms!utilizing!serutill & " * ")); "
Once I dbl click on the list box item that I want , a message appears and
tells" type mismatch error 13"
Any help please?
 

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

Top