Results 1 to 4 of 4
  1. #1
    Chuck is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Jul 2019
    Posts
    49

    Command button will not open form in a copied database

    I have a working database originally created in Access 2003 and which I am successfully using in Access by way of Office 365. The command butttons open forms. I copies this database and then pasted with a new name and find that the command buttons do not work. I am wondering whether the database that I have been using successfully in the current version of Access is in an older and retained file format and the copied database is in a newer format that does not allow for the form opening code.

    Questions:

    1) How can I detect the file format?

    2) Does the simple act of copying a DB in an older file format and saving it with a new name have the effect of converting the DB into the current format?

    2) The code to open the forms is:

    Private Sub Command0_Click()
    DoCmd.OpenForm "Deposits"


    DoCmd.Maximize
    End Sub

  2. #2
    Micron is offline Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,800
    You copied the db into a folder that is not trusted?
    Your issue won't have anything to do with Access versions as simply copying does not alter versions (or format, as you called it).
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  3. #3
    Chuck is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Jul 2019
    Posts
    49
    Just noticed a bigger problem. First, none of the command buttons work and more significantly, data entered into any particular form does not get entered into its underlying table.

  4. #4
    Chuck is offline Advanced Beginner
    Windows 10 Access 2003
    Join Date
    Jul 2019
    Posts
    49
    CORRECTION! The issue is ONLY the command buttons not working. (Tables and forms associate properly.)

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 4
    Last Post: 08-10-2018, 12:00 AM
  2. Using command button to query and open form
    By annienelson621 in forum Forms
    Replies: 2
    Last Post: 03-26-2015, 08:05 AM
  3. Replies: 8
    Last Post: 06-25-2014, 08:03 AM
  4. Open Form or Command Button problem
    By geordie_taz in forum Forms
    Replies: 3
    Last Post: 12-13-2012, 10:09 AM
  5. Use a command button to open a form
    By johnpaul in forum Forms
    Replies: 24
    Last Post: 09-23-2010, 12:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums