Also, if the query is updatable, why would you expect ModGroupLevel1 to
increment when it is inside a string?
Add "MsgBox LevelUpSQL" before the line "DoCmd.RunSQL (LevelUpSQL)". What is
displayed in the message box?
You should have something like:
LevelUpSQL = "UPDATE MenuDetails LEFT JOIN MenuInfo ON
MenuDetails.MenuID = MenuInfo.MenuID SET MenuInfo.ModGroupLevel1 = " &
MenuInfo.ModGroupLevel1 + 1 & _
--snip--
Note that
MenuInfo.ModGroupLevel1 + 1
is outside of the double quotes.
HTH
--
Steve S.
--------------------------------
"Veni, Vidi, Velcro"
(I came, I saw, I stuck around.)
John Nurick wrote:
|