T TjS Registered User. Local time Today, 07:02 Joined Jul 18, 2007 Messages 126 Sep 19, 2007 #1 Situation wanted within access db: 1 push button [export] 2. pop-up [save as], with browser to search for a path 3. typing a filename 4. clicking on [save] But, dont know how to do that...please advise
Situation wanted within access db: 1 push button [export] 2. pop-up [save as], with browser to search for a path 3. typing a filename 4. clicking on [save] But, dont know how to do that...please advise
ezfriend Registered User. Local time Yesterday, 23:02 Joined Nov 24, 2006 Messages 242 Sep 20, 2007 #2 To save the file, check out this site: http://www.mvps.org/access/api/api0001.htm This will allow you to define the location and file name that you will be saving to. Look at the variable in that website: strSaveFileName Once you have this file name, you can use the DoCmd.TransferText to export your data from the table. e.g. If strSaveFileName <> "" then 'assuming that the user enter the file name DoCmd.TransferText acExportDelim, , TableName, strSaveFileName End If Hope this help. ez.
To save the file, check out this site: http://www.mvps.org/access/api/api0001.htm This will allow you to define the location and file name that you will be saving to. Look at the variable in that website: strSaveFileName Once you have this file name, you can use the DoCmd.TransferText to export your data from the table. e.g. If strSaveFileName <> "" then 'assuming that the user enter the file name DoCmd.TransferText acExportDelim, , TableName, strSaveFileName End If Hope this help. ez.