A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Running & Setting Up Queries
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

sql string as field data; ado?



 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old July 9th, 2009, 05:24 PM posted to microsoft.public.access.queries
robert.waters
external usenet poster
 
Posts: 15
Default sql string as field data; ado?

How might one escape an SQL string for insertion into a table?

I have a multi-user Access db, with users that create their own
queries that need to be synced to every other user's frontends. To
accomplish this, I had previously created a 'query repository' - the
frontends are updated with the current query set using a push/pull to/
from that repository (querydefs are copied around). Unfortunately due
to a limitation of Acess, this causes query Created and LastUpdated
dates to be lost (reset with the current date). So, I'd like to track
the queries in a table, including their sql source. However, I do not
know how to escape the sql text so that it doesnt pollute the sql
INSERT string. I am currently encoding it to base64, but i am sure
there is a better way.


Thanks!
 




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 Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:02 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.