dbTalk Databases Forums  

access2007 - 'record is deleted' assigning string to a query

comp.databases.ms-access comp.databases.ms-access


Discuss access2007 - 'record is deleted' assigning string to a query in the comp.databases.ms-access forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Roger
 
Posts: n/a

Default access2007 - 'record is deleted' assigning string to a query - 12-13-2010 , 03:51 PM






periodically, the following fails when assigning qdf.sql, with "3167
Record is deleted."

Dim qdf As DAO.QueryDef

Set qdf = CurrentDb.QueryDefs("qryPurOpenListPT")
qdf.SQL = strsql
qdf.Close


strsql is a valid sql statement that returns 2 records
since I'm using the runtime package, I can only log the error a text
file, but I'd like to resolve the issue, but how ?

Reply With Quote
  #2  
Old   
a a r o n . k e m p f @gmail.com [MCITP: DBA]
 
Posts: n/a

Default Re: access2007 - 'record is deleted' assigning string to a query - 01-03-2011 , 06:05 AM






wow.. it looks to me like you're using an obsolete method.. you should just move to SQL Server.

Create Procedure spHelloWorld
as
Select 'Hello World' as theAnswer

that's a lot easier than all your DAO bullshit.

Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.