Question : Selecting an entry from a List Box to edit the entry on a form

I've created a database template that has a form that holds all of the entries on different pages and each page corresponds to a single database entry.  On another form, I've placed a list box that organizes the different entries into a list.  Here's the problem:  I'm trying to make it so that when I select an entry on the list box and double click on it, the entry opens up and I can edit the entire database entry on the form with all of the fields available for editting.  How do I do that?  I figure that the answer lies in selecting the properties of the list box, clicking on event and then creating a macro for "double click."  But beyond that, I'm lost.

Answer : Selecting an entry from a List Box to edit the entry on a form

if your field name has spaces you need to enclose it in []

DoCmd.OpenForm "Main Form", , , "[first name]='" & Me.List0.Value & "'"

Steve
Random Solutions  
 
programming4us programming4us