D
d9pierce
Hi group
I have a list box on my form that when double clicked it opens a form
to edit or add a new division. No biggie but when it is dbl clicked
with no data, it goes to error and debug. I need to know how to create
a code like an If Null or something to open this to a new record.
Private Sub List139_DblClick(Cancel As Integer)
DoCmd.OpenForm "Client_Division", , , "[CompanyID]=" & Me!
[List139].Column(0)
End Sub
List box was made from Query,
Column 1 = ClientDivisionID
Column 2 = CompanyID / Criteria: Forms!Company_Main!CompanyID
Column 3 = DivisionName
Bound Column 1
Thanks so much,
Dave
I have a list box on my form that when double clicked it opens a form
to edit or add a new division. No biggie but when it is dbl clicked
with no data, it goes to error and debug. I need to know how to create
a code like an If Null or something to open this to a new record.
Private Sub List139_DblClick(Cancel As Integer)
DoCmd.OpenForm "Client_Division", , , "[CompanyID]=" & Me!
[List139].Column(0)
End Sub
List box was made from Query,
Column 1 = ClientDivisionID
Column 2 = CompanyID / Criteria: Forms!Company_Main!CompanyID
Column 3 = DivisionName
Bound Column 1
Thanks so much,
Dave