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

QuerySetCell gotch ya.

Status
Not open for further replies.

rlarson

Programmer
Nov 15, 2002
18
0
0
US
Ran into this little problem on MX.

I was using:
<cfset available_date = dateformat(now(), &quot;mm/dd/yyyy&quot;)>
<cfset temp = QuerySetCell(qryWidgets, &quot;AvailableDate&quot;, available_date, qryWidgets.currentrow)>
to add a formatted date value to a query. When I went to use the value it returned: {ts 2003-03-20 00:00:00}

Using &quot;##&quot; around available date forced the value to be a string.
<cfset temp = QuerySetCell(qryWidgets, &quot;AvailableDate&quot;, &quot;#available_date#&quot;, qryWidgets.currentrow)>
It then returned the desired result of 03/20/2003.

Hope this helps someone out there.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top