Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

SQL Statement Problem 1

Status
Not open for further replies.

iisman

Technical User
Mar 6, 2005
85
CA
This is probably an obvious one, but i can not get this stmt to work...

Code:
SQL = "UPDATE outsidelinks SET outsidelinkurl = 'test.com', outsidelinkcount = '266', lastClickThru = '9/99/2999 8:00:00 PM' WHERE ID ="& linkid

The variable 'linkid' carries a numeric value, and I have tested it with response.writes to make sure that it has brought the correct value to this page.

Eventually, the values to be updated will be variables, but i just want to get this statement working correctly...

Thanks for any help you can provide
 
access uses octothorps as its date string delimiters

lastClickThru = #9/99/2999 8:00:00 PM#

of course, that's not going to work because it's an invalid date, eh

r937.com | rudy.ca
 
Thanks for the quick response. I made that change, but still getting error "No value given for one or more required parameters."

Code:
SQL = "UPDATE outsidelinks SET outsidelinkurl = 'test.com', outsidelinkcount = '266', lastClickThru = #7/02/2005 8:00:00 PM# WHERE ID ="& linkid

I have tried the date with the ' ' around it as well, and same thing. does it need those? or just the #'s?

As I mentioned, I know that the linkId variable has a value, from testing with a response.write statement.

Any other ideas?
 
Thanks for the help, got 'er all working. turned out that one of the col names was mixed up
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top