Combo Problrms

D

DS

I have a combo box whos rowsource is set from another combobox. The
problem is that after I select a record in a the second box, it always
requeries itself tothe first record even though the value it's setting
is the one I selected. Any help why this is happening I would
appreciate it.
Thanks
DS

Private Sub CmbMenu_AfterUpdate()
Me.TxtMenu = Me.CmbMenu.Column(0)
With Me.CmbMenuSections
.RowSource = "SELECT MenuInfo.MenuID, MenuInfo.MenuCatID,
MenuCats.MenuCat " & _
"FROM MenuInfo INNER JOIN MenuCats ON MenuInfo.MenuCatID =
MenuCats.MenuCatID " & _
"GROUP BY MenuInfo.MenuID, MenuInfo.MenuCatID, MenuCats.MenuCat " & _
"HAVING (((MenuInfo.MenuID) = [Forms]![Easy28]![TxtMenu])) " & _
"ORDER BY MenuCats.MenuCat;"
.Requery
End With
End Sub
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

SQL SubQuery 10
SQL UPDATE Problem 5
UPDATE SQL Problem 1
Update Query Problem 2
Dynamic Naming of Form Button 3
Clearing combo boxes and a text box 2
Combo box 0
my combo boxes 2

Top