Hi,
I have a edit section in my database that has a listbox that displays records by clicking on a button. I use the following code to excecute the command:
DoCmd.OpenForm "Formname", , , _
"[tblname].[fieldname]=" & "'" & Me.typelistnamehere.Column(0) & "'"
'Close the dialog box
DoCmd.Close...