Need the code for...

pwicr

Registered User.
Local time
Today, 02:15
Joined
Sep 22, 2011
Messages
144
I'm trying to create a dblclick event that will open the "supplier" form but to the one that is currently on screen.

My weakness is creating codes.

Thanks.
 
I'm almost there...

Private Sub PrimeVend_DblClick(Cancel As Integer)

DoCmd.OpenForm "Suppliers", , , "SupplierName ='" & Me.OnDblClick & "'"

End Sub

and it opens to a blank "supplier".

what am i missing to get it to open to the supplier that is displayed in my product form?
 
OnDblClick is the name of a control that has a supplier name in it? Doesn't sound like it.
 
sigh...blonde moment.

Thanks pbaldy!!!!! Works great!
 

Users who are viewing this thread

Back
Top Bottom