Hi,
I want to use cascading comboboxes on a form. When I try my form, Access return an error message:
The record source 'PhyLoc FROM Location WHERE GeoLoc = 'Quebec City' ORDERED BY GeoLoc' specified on this form or report does not exist.
I red some threads about it, and a lot of googling, it got me a long way, but I can't seem to figure what I am missing here..
The first CB row source is from a query and the second is from the table Location.
Code:
Private Sub cmbGeoLoc_AfterUpdate()
On Error Resume Next
cmbPhyLoc.RowSource = "PhyLoc " & _
"FROM Location " & _
"WHERE GeoLoc = '" & cmbGeoLoc & "' " & _
"ORDER BY GeoLoc"
End Sub
The attached picture is a snapshot of the table Location.
A hint on this would be much appreciated.
I want to use cascading comboboxes on a form. When I try my form, Access return an error message:
The record source 'PhyLoc FROM Location WHERE GeoLoc = 'Quebec City' ORDERED BY GeoLoc' specified on this form or report does not exist.
I red some threads about it, and a lot of googling, it got me a long way, but I can't seem to figure what I am missing here..
The first CB row source is from a query and the second is from the table Location.
Code:
Private Sub cmbGeoLoc_AfterUpdate()
On Error Resume Next
cmbPhyLoc.RowSource = "PhyLoc " & _
"FROM Location " & _
"WHERE GeoLoc = '" & cmbGeoLoc & "' " & _
"ORDER BY GeoLoc"
End Sub
The attached picture is a snapshot of the table Location.
A hint on this would be much appreciated.