vba - Using a command button to add data to a table -


i have table called manual_ticket_listing , trying create form let users add, edit , delete records table. working on add function , being new vba not sure issue is. current error receiving "syntax error in insert statement."

    currentdb.execute "insert manual_ticket_listing (ticket_date, ticket_time, pvl_ticket, fl_ticket, customer_name, truck_description, truck_gross_weight, truck_tare_weight, truck_net_weight, tons, m 

aterial, scale attendent initials) " & _ " values ('" & me.ticket_date & ",'" & me.ticket_time & "','" & _ me.pvl_ticket & "','" & me.fl_ticket & "','" & me.customer_name & "','" & me.truck_description & "','" & me.truck_gross_weight & "','" & _ me.truck_tare_weight & "','" & me.truck_net_weight & "','" & me.tons & "','" & me.material & "','" & me.scale_attendent_initials & "')"


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -