Ask a Question related to Dreamweaver AppDev, Design and Development.
-
Michael Brown #1
Working through an update query Coldfusion/Access
I'm working on an update query for a class registration system in ColdFusion
6.1 running against an Access 2000 datasource. In short what I need to do is
update the total for number of registrants in the class sessions table after
an edit to a registration form that may either increase or decrease the
number of participants.
I'd like to do this in a single query here's what I have thus far:
<cfquery datasource="xyz">
UPDATE pscsessions set enrollment = (select sum(pscregistration.registrants)
FROM pscregistration where pscregistration.session_id = #form.session_id#)
WHERE session_id = #form.session_id#
</cfquery>
When I test the query in Access, using real values I get an error.
Can you help point me in the right direction?
Thanks for your help,
Michael Brown
Texas Department of Aging and Disability Services
Michael Brown Guest
-
update query not working any ideas?
Hi, I am attempting to do a simple update query using the cfquery tag. The code is: <cfquery datasource="test" name="testers"> update tablename... -
Lotus Notes Query with ColdFusion - Access
Is it possible to access/query Lotus Notes with Coldfusion? How can I create the DSN in Coldfusion Administrator Successfully? I have searched... -
PHP Update query not working
Hello, I'm using a standard update query and getting an error message. Here is the code: if ((isset($HTTP_POST_VARS)) && ($HTTP_POST_VARS ==... -
Action script to Coldfusion query not working
<cfsetting enablecfoutputonly="YES"> <cfcontent type = "application/x-www-urlform-encoded"> THe following code is called from a Flash... -
Update Query.. asp/access db
Hi, Does anybody know what this error is about? ____ Microsoft OLE DB Provider for ODBC Drivers error '80004005' Operation must use an...



Reply With Quote

