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

Help with S1000 error

Status
Not open for further replies.

mkyzar

Programmer
Joined
Oct 19, 2000
Messages
56
Location
US
I'm trying to delete a record from a dbaseIV table. I'm able to successfully write to it but not delete from it. I read a post from July, 2000, where the person ended up converting the table to an Access database but in my case that is not possible. Any suggestions?

Thanks for your help.

mkyzar
 
What's the exact error that you are getting and what version of ColdFusion Server are you running? - tleish
 
I'm running ColdFusion 4.5 and the exact message is
ODBC Error Code = S1000 (General error)


[Microsoft][ODBC dBase Driver] Could not delete from specified tables.

 
Can you post an example of you code? Are you using anything like cfgridupdate for the management? - tleish
 
<cfinclude template=&quot;fabtoolbar.cfm&quot;>

<cfif isdefined(&quot;form.yes&quot;) is &quot;Yes&quot;>

<cfquery name=&quot;fabdelete&quot; datasource=&quot;mimast&quot;>
SELECT *
FROM mimast
WHERE mimast.workorno = '#form.workorno#'
</cfquery>


<!---Display Success Message--->
<cfoutput query=&quot;fabdelete&quot;>
<h3>Work Order Number #form.workorno# has been deleted.</h3>
</cfoutput>

<cfquery name=&quot;deletefab&quot; datasource=&quot;mimast&quot;>
DELETE
FROM mimast
WHERE mimast.workorno = '#form.workorno#'
</cfquery>
<cfelse>
<cfoutput><h3>Work Order Number #form.workorno# not deleted.</h3></cfoutput>
</cfif>

This is all I'm doing on the delete page. The first query I stuck in there to make sure that it was finding the correct record and the second, of course, is doing the deleting. It finds the record successfully, just won't delete it.

mkyzar
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top