G
Guest
Ok form has 1 bound combo box and 1 listbox the unbound listbox updates the
regoin fine by using the following:
Private Sub Select_region_AfterUpdate()
Form.RecordSource = "SELECT * FROM [WCC Dealers] WHERE REGION = " &
Select_region.Value
End Sub
So on the bound combo box i thought i would use:
Private Sub Select_COMPANY_AfterUpdate()
Form.RecordSource = "SELECT * FROM [WCC Dealers] WHERE COMPANY NAME = " &
Select_COMPANY.Value
End Sub
This returns error Run-Time error'3075'
Syntax error (missing operator) in query expression 'COMPANY NAME= well this
is actually the correct value of select_company.value
What am i missing here
David
Michigan
regoin fine by using the following:
Private Sub Select_region_AfterUpdate()
Form.RecordSource = "SELECT * FROM [WCC Dealers] WHERE REGION = " &
Select_region.Value
End Sub
So on the bound combo box i thought i would use:
Private Sub Select_COMPANY_AfterUpdate()
Form.RecordSource = "SELECT * FROM [WCC Dealers] WHERE COMPANY NAME = " &
Select_COMPANY.Value
End Sub
This returns error Run-Time error'3075'
Syntax error (missing operator) in query expression 'COMPANY NAME= well this
is actually the correct value of select_company.value
What am i missing here
David
Michigan