Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Syntax problem
Message
From
14/05/2002 05:48:29
 
General information
Forum:
ASP.NET
Category:
Other
Title:
Miscellaneous
Thread ID:
00655946
Message ID:
00656018
Views:
21
oh yeah !!
Actually IIF will not work with VBScript. so alternatives are ... in your access database set default value of date to null and if the text box is blank dont set date in your update query OR use IF inplace of IIF

if trim(txtdate)="" then
dtsql=""
else
dtsql=",date=#" & lbldate & "#"
end if
sql="update tablename set field1=" & fieldval & dtsql & ",field2=" etc..
Best Luck..
Nilesh
Previous
Reply
Map
View

Click here to load this message in the networking platform