I'm having troubles getting this to work. I'm updating a recordsource with information stored in variables. So far this works:
Set Conn = Server.CreateObject("ADODB.Connection"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Conn.open "DSN=webif"
Set RS = Conn.execute("INSERT INTO inbounds (customer) VALUES ('1236547')"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
But when I replace the last line with this, it gives me a syntax error:
Set RS = Conn.execute("INSERT INTO inbounds (customer) VALUES (" & g_custnum & "
"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
It must be how I'm inserting the variables, but I'm at a loss on how to fix it.
Any help is appreciated!
Set Conn = Server.CreateObject("ADODB.Connection"
Conn.open "DSN=webif"
Set RS = Conn.execute("INSERT INTO inbounds (customer) VALUES ('1236547')"
But when I replace the last line with this, it gives me a syntax error:
Set RS = Conn.execute("INSERT INTO inbounds (customer) VALUES (" & g_custnum & "
It must be how I'm inserting the variables, but I'm at a loss on how to fix it.
Any help is appreciated!