Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I need to delete Reports ( or non file objects)in not CurrentDB,How ?

Status
Not open for further replies.

Artc

Programmer
May 24, 2001
8
US
I want to make users in client side DB be able to access another DB (server.MDB) and delete the reports there that he/she placed in using the docmd.databasetransfer. Is there any way of doing this ?

Or I just have to link to that other MDB in the server side and executew deletion from there. I'm not sure how can this be done .

Any help is gereatly appreciated.
 
I guess you can use automation - cant think of an easier way.

Sub deletereport()

Dim aApp As New Access.Application
aApp.Visible = True
aApp.OpenCurrentDatabase ("OtherDataBase.mdb")
aApp.DoCmd.DeleteObject acReport, "rptToBeDeleted"

End Sub

Hope it helps


Stew

 
thanks. But I tried it and didnt work.

I have the following code...
on my client's MDB delete_report module
but still it doesnt work:

aApp.DoCmd.DeleteObject acReport, strRpt

I also tried the shell command and still doesnt.
I made the server MDB an auto function to delete the report
but it is still a no go.

I'm already so frustrated at this point.

Thanks for trying - Art
 

Everything works fine over here.

What error messages come up - and where in the code?

Stew
 
Thanks anyways. What i did was perhaps the hardway. I created the server mdb to be an auto run job which will read the list of report to delete, and delete the reports and quit.

My client side MDB will shell to this MDB everytime.

- Art
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top