473,406 Members | 2,387 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Export from .ADP to .MDB

i feel like this should be straight forward but for some reason it
doesn't appear to be. i have a subform in an adp file that contains a
large number of records (>65K) and the recordsource is created
dynamically at run time. i'm trying to figure out a way to export the
records to an mdb file without running the sql again.

i beleive the transferdatabase requires a saved query which translates
to a saved view on my sql box which isn't an option. one thought that
came to mind is creating the database in code, creating the
destination table and then looping thru the recordset (a
recordsetclone). there's obvious problems with that. for one, u'd
need to use adox or run ddl sql to create the table and two it seems
like it'd be slow as hell. in addition u'd need to bring up a common
dialog and yada yada yada. and if memory serves recordsetclones in
adp's are DAO so that's another reference i'd need.

any ideas on this?
Nov 12 '05 #1
2 4343
CJ
Hi Ted,

My inclination would be to handle this on the SQL Server side. You could
create a stored procedure that would use your recordsource to create a table
and then use DTS to export to a data file. You could then schedule this
procedure in SQL Server or run this stored procedure from your adp using a
pass-through query. Hope this helps.

"Ted Theodoropoulos" <te********@yahoo.com> wrote in message
news:f5**************************@posting.google.c om...
i feel like this should be straight forward but for some reason it
doesn't appear to be. i have a subform in an adp file that contains a
large number of records (>65K) and the recordsource is created
dynamically at run time. i'm trying to figure out a way to export the
records to an mdb file without running the sql again.

i beleive the transferdatabase requires a saved query which translates
to a saved view on my sql box which isn't an option. one thought that
came to mind is creating the database in code, creating the
destination table and then looping thru the recordset (a
recordsetclone). there's obvious problems with that. for one, u'd
need to use adox or run ddl sql to create the table and two it seems
like it'd be slow as hell. in addition u'd need to bring up a common
dialog and yada yada yada. and if memory serves recordsetclones in
adp's are DAO so that's another reference i'd need.

any ideas on this?

Nov 12 '05 #2
thanks for the reply. i had that thought too. there's a couple
problems with that approach in this situation. one is that this app
was developed for a global group and the biggest group of users of the
app are in Asia. as a result, i don't have a existing network
directory that they have access to. yes i could create a share on the
sql server box and just give access to everyone (150K employees) but
i'm a little weary of that.

another issue that comes in to play is when multiple users send
requests. the databases will be way too big to email so i have to put
them in a network share and i'll have to create a routine to delete
old dbs periodically. also, unique name could be a problem or someone
taking someone elses database. plus the data is right there on the
client. it seems there should be some way to dump this to an MDB
without it being that big of a deal. maybe that's not a safe
assumption.

in 11+ years of access development i can't recall having such a
seemingly simple problem be such a PITA.

Hi Ted,

My inclination would be to handle this on the SQL Server side. You could
create a stored procedure that would use your recordsource to create a table
and then use DTS to export to a data file. You could then schedule this
procedure in SQL Server or run this stored procedure from your adp using a
pass-through query. Hope this helps.

Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: DarkSpy | last post by:
many c++ compilers including "gcc" have not implemented the "export" keyword, but the comeau compilers made it (just i knew). i want to know about: is it too difficult to implement "export"...
205
by: Jeremy Siek | last post by:
CALL FOR PAPERS/PARTICIPATION C++, Boost, and the Future of C++ Libraries Workshop at OOPSLA October 24-28, 2004 Vancouver, British Columbia, Canada http://tinyurl.com/4n5pf Submissions
1
by: Do Park via SQLMonster.com | last post by:
Hello all, I don?t often export data from a table. I am wondering how you export data from a table. I?d like to know how you export in real world. Do you export data from a table to a flat...
6
by: maricel | last post by:
Is there anybody out there who have any idea why EXPORT is relatively slower when putting the output file on a network drive - map drive from onother PC compared to putting it on my local PC drive...
5
by: David | last post by:
I am a little confused by DB2 Backup and Export. I used "db2 backup db QAS to /dev/rmt0" backuping 650GB database to a IBM LTO 3581 (1 drive) only 11 hours. But I used "db2 export to /dev/rmt0...
5
by: Tim Eliot | last post by:
Just wondering if anyone has hit the following issue and how you might have sorted it out. I am using the command: DoCmd.TransferText acExportMerge, , stDataSource, stFileName, True after...
7
by: Pat | last post by:
I would like to send the Print Preview of a MS Access form to a Snapshot file. The form contains an OLE graph. BACKGROUND A snapshot of a report is possible. If I could I would use a report to...
1
by: chaitu | last post by:
Hi, Can anybody tell me what the error code for Export is. Like i get the message SQL3104N The Export utility is beginning to export data to file...
5
by: JHNielson | last post by:
I have a somewhat simple question, but have been baffled by it for a while, and now I'm on a tight deadline - have to get it done within 24 hours. I am trying to export a set of files to my hard...
8
by: iheartvba | last post by:
Hi I am using Access 2007 and am trying to export a query to a fixed length text file. I tried using the following code to export the text file: DoCmd.TransferText acExportFixed, , "qryFFRDeFile",...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.