My name's not Bobby, but here goes:

<cfquery name="yourQuery" datesource="yourDS">
        UPDATE yourTable
        SET YourColumn = 'Something'

        SELECT @@ROWCOUNT 'RowsUpdated'
</cfquery>

<cfoutput>
        #yourQuery.RowsUpdated#
</cfoutput>

Untested, and for SQL Server, but might be ok for Access.

Adrian

-----Original Message-----
From: Will Tomlinson [mailto:[EMAIL PROTECTED]
Sent: 21 January 2006 18:26
To: CF-Talk
Subject: Re: Update, Delete, Insert recordcount?


>SQL can do it in a coupld of databases I think in sql server its
@@rowcount?

Bobby,

Could you offer an example for dave? He mostly uses Access.

Will


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:230181
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to