Mhtml
10-11-2002, 08:23 AM
I've made a mailing list script and I have added a admin option to change the look of the gui, eg colors border styles link colors etc.
I got my pages to read the database and adjust the stylesheet accordingly but I can't seem to get the update string to work.
The error I am getting is this:
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '072f95'.
The line in question is line 19, which is the execute for the sql update string.
SqlUpdate = "UPDATE GUI SET imageUrl ="& imageUrl&", MenuBgColor ="& MenuBgColor &", MenuLinkColor ="& MenuLinkColor &", MenuBorderStyle =" & MenuBorderStyle &", MenuBorderWidth =" & MenuBorderWidth &", MenuBorderColor =" & MenuBorderColor & ", MainTextColor =" & MainTextColor &", MainLinkColor =" & MainLinkColor &", MainBgColor =" & MainBgColor &", AlternateColorOne =" & AlternateColorOne & ", AlternateColorTwo =" & AlternateColorTwo & ") WHERE ID=1"
All the variables are defined earlier in the document and are correct. But it is getting stuck at the mainlinkcolor variable with that weird syntax error, the info being sent for mainlinkcolor when this occured was 072f95.
I got my pages to read the database and adjust the stylesheet accordingly but I can't seem to get the update string to work.
The error I am getting is this:
[Microsoft][ODBC Microsoft Access Driver] Syntax error (missing operator) in query expression '072f95'.
The line in question is line 19, which is the execute for the sql update string.
SqlUpdate = "UPDATE GUI SET imageUrl ="& imageUrl&", MenuBgColor ="& MenuBgColor &", MenuLinkColor ="& MenuLinkColor &", MenuBorderStyle =" & MenuBorderStyle &", MenuBorderWidth =" & MenuBorderWidth &", MenuBorderColor =" & MenuBorderColor & ", MainTextColor =" & MainTextColor &", MainLinkColor =" & MainLinkColor &", MainBgColor =" & MainBgColor &", AlternateColorOne =" & AlternateColorOne & ", AlternateColorTwo =" & AlternateColorTwo & ") WHERE ID=1"
All the variables are defined earlier in the document and are correct. But it is getting stuck at the mainlinkcolor variable with that weird syntax error, the info being sent for mainlinkcolor when this occured was 072f95.