开发者

Is it safe to ignore ~sq_ queries when using LoadfromText

I'm working on some VBA to do exporting and importing (using SaveAsText and LoadFromText) of MS-Access objects in an application I'm supporting. I'm hoping to be able to start storing my code in SVN so that more than one developer can work on this application at once.

I keep getting the following error when I bring in queries t开发者_如何学Chat start with ~sq_

2285 - Microsoft Access can't create the output file.

Anecdotally, when I skip the ~sq_ files, my forms and reports seem to work. Is this safe to do long term?


When you use a SELECT statement as the RecordSource for a form, Access creates a hidden query. When you SaveAsText for the form, the file includes that same SELECT statement as its RecordSource property. So when you LoadFromText, Access can recreate the hidden query. I suspect the same thing happens for report RecordSources, but I haven't actually checked. I skip those ~sq queries for SaveAsText.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜