D
DS
I have this code. The problem is that I can go from "F" to "U"
But I can't go from "U" to"F"
Any help appreciated.
Thnaks
DS
Dim TypeUSQL As String
DoCmd.SetWarnings False
TypeUSQL = "UPDATE MenuInfo SET MenuInfo.ModAction1 = ""F"" " & _
"WHERE MenuInfo.TerminalID = Forms!MenuCreator2!TxtStation " & _
"AND MenuInfo.MenuID = Forms!MenuCreator2!TxtMenu " & _
"AND MenuInfo.MenuCatID = Forms!MenuCreator2!TxtSection " & _
"AND MenuInfo.ItemID = Forms!MenuCreator2!TxtItem " & _
"AND MenuInfo.ModGroup1 = Forms!MenuCreator2!TxtModGroup " & _
"AND Menuinfo.ModAction1 = ""U"";"
DoCmd.RunSQL (TypeUSQL)
DoCmd.SetWarnings True
Me.ListGroups.Requery
Me.ListGroups = ""
Me.ListMods.RowSource = ""
Me.ListMods = ""
Dim TypeFSQL As String
DoCmd.SetWarnings False
TypeFSQL = "UPDATE MenuInfo SET MenuInfo.ModAction1 = ""U"" " & _
"WHERE MenuInfo.TerminalID = Forms!MenuCreator2!TxtStation " & _
"AND MenuInfo.MenuID = Forms!MenuCreator2!TxtMenu " & _
"AND MenuInfo.MenuCatID = Forms!MenuCreator2!TxtSection " & _
"AND MenuInfo.ItemID = Forms!MenuCreator2!TxtItem " & _
"AND MenuInfo.ModGroup1 = Forms!MenuCreator2!TxtModGroup " & _
"AND Menuinfo.ModAction1 = ""F"";"
DoCmd.RunSQL (TypeFSQL)
DoCmd.SetWarnings True
Me.ListGroups.Requery
Me.ListGroups = ""
Me.ListMods.RowSource = ""
Me.ListMods = ""
But I can't go from "U" to"F"
Any help appreciated.
Thnaks
DS
Dim TypeUSQL As String
DoCmd.SetWarnings False
TypeUSQL = "UPDATE MenuInfo SET MenuInfo.ModAction1 = ""F"" " & _
"WHERE MenuInfo.TerminalID = Forms!MenuCreator2!TxtStation " & _
"AND MenuInfo.MenuID = Forms!MenuCreator2!TxtMenu " & _
"AND MenuInfo.MenuCatID = Forms!MenuCreator2!TxtSection " & _
"AND MenuInfo.ItemID = Forms!MenuCreator2!TxtItem " & _
"AND MenuInfo.ModGroup1 = Forms!MenuCreator2!TxtModGroup " & _
"AND Menuinfo.ModAction1 = ""U"";"
DoCmd.RunSQL (TypeUSQL)
DoCmd.SetWarnings True
Me.ListGroups.Requery
Me.ListGroups = ""
Me.ListMods.RowSource = ""
Me.ListMods = ""
Dim TypeFSQL As String
DoCmd.SetWarnings False
TypeFSQL = "UPDATE MenuInfo SET MenuInfo.ModAction1 = ""U"" " & _
"WHERE MenuInfo.TerminalID = Forms!MenuCreator2!TxtStation " & _
"AND MenuInfo.MenuID = Forms!MenuCreator2!TxtMenu " & _
"AND MenuInfo.MenuCatID = Forms!MenuCreator2!TxtSection " & _
"AND MenuInfo.ItemID = Forms!MenuCreator2!TxtItem " & _
"AND MenuInfo.ModGroup1 = Forms!MenuCreator2!TxtModGroup " & _
"AND Menuinfo.ModAction1 = ""F"";"
DoCmd.RunSQL (TypeFSQL)
DoCmd.SetWarnings True
Me.ListGroups.Requery
Me.ListGroups = ""
Me.ListMods.RowSource = ""
Me.ListMods = ""