G
Guest
Attempting to sort form using a combo box according to the instructions on
Microsoft Help File Article 208390
Downloaded Northwind Database and followed the instructions on Article 208390
After completing the instructions, and attempting to use the new combo box
to sort the Customers table, the following message appeared.
"The expression After Update you entered as the event property setting
produced the following error: Ambiguous name detected:
cboLookup_AfterUpdate."
*The expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure].
*There may be an error evaluating the funtion, event, or macro
Article 208390 instructions say enter the following code in AfterUpdate
Property:
Sub cboLookup_AfterUpdate()
Me.RecordSource = "SELECT * FROM Customers ORDER BY [" & Me!cboLookup &
"];"
End Sub
My Combo Box RowSource Type = Field List
My Combo Box RowSource property = Customers Table
My Combo Box Name property = cboLookup
My code looks like this:
Private Sub cboLookup_AfterUpdate()
Sub cboLookup_AfterUpdate()
Me.RecordSource = "SELECT * FROM Customers ORDER BY [" & Me!cboLookup &
"];"
End Sub
End Sub
Any help would be appreciated... Thank you.
Microsoft Help File Article 208390
Downloaded Northwind Database and followed the instructions on Article 208390
After completing the instructions, and attempting to use the new combo box
to sort the Customers table, the following message appeared.
"The expression After Update you entered as the event property setting
produced the following error: Ambiguous name detected:
cboLookup_AfterUpdate."
*The expression may not result in the name of a macro, the name of a
user-defined function, or [Event Procedure].
*There may be an error evaluating the funtion, event, or macro
Article 208390 instructions say enter the following code in AfterUpdate
Property:
Sub cboLookup_AfterUpdate()
Me.RecordSource = "SELECT * FROM Customers ORDER BY [" & Me!cboLookup &
"];"
End Sub
My Combo Box RowSource Type = Field List
My Combo Box RowSource property = Customers Table
My Combo Box Name property = cboLookup
My code looks like this:
Private Sub cboLookup_AfterUpdate()
Sub cboLookup_AfterUpdate()
Me.RecordSource = "SELECT * FROM Customers ORDER BY [" & Me!cboLookup &
"];"
End Sub
End Sub
Any help would be appreciated... Thank you.