D
DS
I'm inserting data into a table and it doesn't seem to be going in, I
think my Syntax is wrong....any help appreciated.
Private Sub List1_Click()
Forms!AddItems!Text22 = Me.List1.Column(0)
CurrentDb.Execute "Insert into
MenuCatIID(MenuID,MenuCatID,ItemID,PrepCatID,PrinterID,PriceLevel)"
Values " & Forms!AddItems!Text8 & ", " & Forms!AddItems!Text10 & ", " &
Forms!AddItems!Text12 & ", " & Forms!AddItems!Text20 & ", " &
Forms!AddItems!Text22 & ", " & Forms!AddItems!Text18 & """
DoCmd.Close acForm, "AddItemPrinter"
DoCmd.Close acForm, "AddItems"
Forms!MenuItems.List54.Requery
End Sub
Thanks
DS
think my Syntax is wrong....any help appreciated.
Private Sub List1_Click()
Forms!AddItems!Text22 = Me.List1.Column(0)
CurrentDb.Execute "Insert into
MenuCatIID(MenuID,MenuCatID,ItemID,PrepCatID,PrinterID,PriceLevel)"
Values " & Forms!AddItems!Text8 & ", " & Forms!AddItems!Text10 & ", " &
Forms!AddItems!Text12 & ", " & Forms!AddItems!Text20 & ", " &
Forms!AddItems!Text22 & ", " & Forms!AddItems!Text18 & """
DoCmd.Close acForm, "AddItemPrinter"
DoCmd.Close acForm, "AddItems"
Forms!MenuItems.List54.Requery
End Sub
Thanks
DS