Results 1 to 5 of 5

Thread: Access - Publish report to word and save

  1. #1
    Leroy_Brown
    Guest

    Access - Publish report to word and save

    I have an access 97 report that must be closed as the table it is based on must be deleted. However, I would like an input box to appear asking if they want to save the report.

    Therefore, I would like to (In code) publish it to word and save it.

    Any thoughts?

  2. #2
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    Why delete the table? Why not just delete all records in the table, thus maintaining the relationship between it and the report?

  3. #3
    Leroy_Brown
    Guest

    Hindsight is a wonderful thing

    You're absolutly right. Wish i'd thought of that. However, project is done with the exception of this and it would cause way too much grief to go back and change.

  4. #4
    Leroy_Brown
    Guest

    is there a command for that?

    I am going to cave and do what you said. Is there a command you know of to dump a tables contents? The only way I know howw to do this is deleting every row of a recordset but there has to be a more efficient way of doing that......

    Any ideas??

    Thanks a bunch

  5. #5
    I'm about to be a PowerPoster! Hack's Avatar
    Join Date
    Aug 2001
    Location
    Searching for mendhak
    Posts
    58,333
    VB Code:
    1. Dim SQL As String
    2. SQL = "DELETE FROM tablename"
    3. dbobject.Execute SQL

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width