transferdatabase help

X

xg

I have a frmActiveView which is based on qryActive query. I want my button
to transfer all the records to a:\active.dbf and I cannot get parameter
right.

I started with:

DoCmd.TransferDatabase acExport, "dBase IV",

What after that? Thanks.
 
D

Douglas J. Steele

Check your help file.

The syntax for TransferDatabase is:

DoCmd.TransferDatabase [transfertype], databasetype, [, structureonly][,
saveloginid]

You're missing databasename, objecttype, source and destination.
 
X

xg

I got error message as 'object invalid or no longer set'. my code is:

DoCmd.TransferDatabase acExport, "dBase IV", "a:\", acQuery,
"qryActiveView", "Active.dbf"

My intension is to export all the records from qryActiveView to
A:\Active.dbf

I have a form with unlining qryActiveView. on the form, I have a button to
do above line. where did I do wrong?

thanks


Douglas J. Steele said:
Check your help file.

The syntax for TransferDatabase is:

DoCmd.TransferDatabase [transfertype], databasetype, [, structureonly][,
saveloginid]

You're missing databasename, objecttype, source and destination.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


xg said:
I have a frmActiveView which is based on qryActive query. I want my button
to transfer all the records to a:\active.dbf and I cannot get parameter
right.

I started with:

DoCmd.TransferDatabase acExport, "dBase IV",

What after that? Thanks.
 
D

Douglas J. Steele

Sorry, I've got no experience with dBase, but try:

DoCmd.TransferDatabase acExport, "dBase IV", "a:\active.dbf", acQuery,
"qryActiveView", "Active.dbf"


--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


xg said:
I got error message as 'object invalid or no longer set'. my code is:

DoCmd.TransferDatabase acExport, "dBase IV", "a:\", acQuery,
"qryActiveView", "Active.dbf"

My intension is to export all the records from qryActiveView to
A:\Active.dbf

I have a form with unlining qryActiveView. on the form, I have a button to
do above line. where did I do wrong?

thanks


Douglas J. Steele said:
Check your help file.

The syntax for TransferDatabase is:

DoCmd.TransferDatabase [transfertype], databasetype, [, structureonly][,
saveloginid]

You're missing databasename, objecttype, source and destination.

--
Doug Steele, Microsoft Access MVP

(no private e-mails, please)


xg said:
I have a frmActiveView which is based on qryActive query. I want my
button to transfer all the records to a:\active.dbf and I cannot get
parameter right.

I started with:

DoCmd.TransferDatabase acExport, "dBase IV",

What after that? Thanks.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top