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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cant get double SQL statment working!!!

Status
Not open for further replies.

nath01

Technical User
Apr 13, 2004
74
GB
im trying to get the following statment working but not haveing much luck:

UPDATE Results
SET follow_up='::follow_up::',fixed='::fixed::',Assigned_To='::Assigned_To::',SVR_No='::SVR_No::',Target_Date='::Target_Date::'
where ID=::ID::

UPDATE Results
Set Completed_Date='::Completed_Date::'
Where Completed_Date='::null::'
and fixed=::Close::



both work on there own but not with both at once i tryed mearging them in to one with no luck. this is for a form that updates data in a database.

anyone know what i am doing wrong?

also what is the null command in FP SQL? is it Where Completed_Date='null'???

Thanks for any help

 
What language are you using here i assume ASP (annoying server pains)
are the ' ' surrounding all your fields shouldnt they be only arround the non-numeric fields
Code:
UPDATE Results
Set Completed_Date='::Completed_Date::'
and fixed=::Close::
perhaps that would work i cant claim to being an expert im now coding in CFML (which to me seems tidier)
Removing the null may make it work

The way web design should be
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top