Re: Createdatabase (Save to a folder, name, import tables)
- From: John W. Vinson <jvinson@xxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Sun, 11 Feb 2007 16:52:10 -0700
On Sun, 11 Feb 2007 23:13:07 GMT, "CWH via AccessMonster.com"
<u31211@uwe> wrote:
Hi John;
Yea I agree, somewhat primitive here. This User database is large so I?m
trying to provide a mechanism of downloading just select tables/records. They
are being downloaded to the transfer.mdb database, which in turn is uploaded
to a backup Admin.mdb system. I have several people using there own copy of
the User database and weekly download to a transfer.mdb database. Each user
submits (emails, USB, or CD) his/her own transfer.mdb to the supervisor who
uploads them into the admin.mdb (make sense?). We don?t have a network or
direct connect between the User databases and the Admin.mdb database. The
transfers.mdb acts as link between the two. Since I have several people
submitting copies of the transfer.mdb I thought to add there names and the
date it was created so the supervisor can get a better handle on several
submissions.
Sounds like you're "rolling your own" Replication. Access has a built
in Replication model - but it's quite complex and requires a lot of
study and work to implement. It may be worth checking into; maybe you
could download the Replication Whitepaper from
http://support.microsoft.com/kb/282977/en-us
It's for A2000 but works in 2002 and 2003; not sure about 2007!
STUDY IT CAREFULLY, and try it out on a COPY of your database -
replication makes major and irreversible changes to your database,
such as adding four new fields per table, making all your Autonumbers
become random, and more.
I will also have to change the VB code in the Admin.mdb to accept & append
tables from different database files.
Thanks for reviewing the code. I tried implementing it but I?m getting a
runtime error 438. Strange since I have access installed? ?Object doesn?t
support this property or method. This is what I have so far; Thanks a lot.
Sub cboTeamName_Click()
Dim ws As Workspace
Dim db As Database
Dim dbBackup As DAO.Database
Dim strFile As String
Dim strFolderName As String
'Get default Workspace
Set ws = DBEngine.Workspaces(0)
strFolderName = BrowseFolder("Where would you like to save your records?")
strFile = "RMS - " & Me.cboTeamName & Format(Date, "mmddyyyy") & ".mdb"
Set dbBackup = ws.CreateDatabase(strFile, dbLangGeneral)
What is the value of strFile? What line generates the error? Check
Tools... References and make sure Microsoft Data Access Objects x.xx
(highest version) is checked and that none are marked MISSING.
John W. Vinson [MVP]
.
- Follow-Ups:
- Re: Createdatabase (Save to a folder, name, import tables)
- From: CWH via AccessMonster.com
- Re: Createdatabase (Save to a folder, name, import tables)
- References:
- Createdatabase (Save to a folder, name, import tables)
- From: CWH via AccessMonster.com
- Re: Createdatabase (Save to a folder, name, import tables)
- From: John W . Vinson
- Re: Createdatabase (Save to a folder, name, import tables)
- From: CWH via AccessMonster.com
- Createdatabase (Save to a folder, name, import tables)
- Prev by Date: Re: Createdatabase (Save to a folder, name, import tables)
- Next by Date: Re: Createdatabase (Save to a folder, name, import tables)
- Previous by thread: Re: Createdatabase (Save to a folder, name, import tables)
- Next by thread: Re: Createdatabase (Save to a folder, name, import tables)
- Index(es):
Relevant Pages
|
|