View Full Version : Exporting Access Queries to a File


crebel
11-05-2001, 11:29 AM
I am trying at export an Access query to the following file types (.dqy, oqy. iqy. rqy). I want the actual query and not the data, so I can save them as the listed above file types. Thanks for any help.

creedford
creedford@hotmail.com

pdx_man
11-05-2001, 02:22 PM
Under View select SQL to get the actual text that is behind the GUI. Copy that out to a text editor and save them with whatever extensions you wish. (Are those you listed text formatted files or some other proprietary format?)

crebel
11-06-2001, 07:18 AM
Those file extensions are different types of saved queries. (not .iqy, that is a Microsoft Web Query) I like your idea, but I tried it and it didnt work. Do you know how to create a query file (.dqy), or maybe what program to use? Thanks again.

pdx_man
11-12-2001, 12:44 PM
Sorry, I don't. I'll ask around, though.

Pat Hartman
11-12-2001, 03:55 PM
Are the file types you mentioned just simple text files with other extensions? Find out by trying to open them using notepad. If notepad opens the file and all you can see is an SQL statement, then the file format is simple text. In which case, you can obtain the text of the querydef by looking at one of the properties (text ?) of the querydef collection.