Results 1 to 5 of 5
  1. #1
    stildawn is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    185

    Can I delete tables via VBA code in a Runtime environment?

    Hi All



    I am close to finishing a new database. In this database I have some VBA code that does a bunch of stuff, one of those things is to check if a temp table exists, and if yes then it will delete it.

    Once finished this database will be made available to a range of people via Access Runtime 2010. I'm just wondering will the VBA code that deletes a table work in a Runtime environment?

    I guess I should also ask if a save import process will also run via Runtime.

    Its not a biggy, just need to make sure that the users that need to do this code have full access if its required.

    Thanks

  2. #2
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    I believe it will. One way to check is to create a copy of your DB. Change the extension to accdr.

    If there is not an exception, I would think it is working.

    The final test would be to use a machine that does not have a full version installed. I have yet to discover something that worked as accdr but did not as ACCDE

  3. #3
    alansidman's Avatar
    alansidman is offline VIP
    Windows 7 32bit Access 2010 32bit
    Join Date
    Apr 2010
    Location
    Steamboat Springs
    Posts
    2,529
    I have created code for an accdr file and it ran without issue. The user cannot access the code, but it should still run.

  4. #4
    stildawn is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Oct 2013
    Posts
    185
    Excellent, thanks guys, I was wondering cause the limitation of Runtime was that the user couldnt design stuff, thought that might extend to deleting/importing tables.

  5. #5
    ItsMe's Avatar
    ItsMe is offline Sometimes Helpful
    Windows 7 64bit Access 2010 32bit
    Join Date
    Aug 2013
    Posts
    7,862
    It is a good question. There is a difference between Design Time and Run Time. If you write VBA that will not work in Run Time because it depends on Design Time, you will get a Run Time exception.

    Testing is necessary.

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

Similar Threads

  1. Replies: 16
    Last Post: 01-31-2014, 07:50 PM
  2. Replies: 0
    Last Post: 10-07-2013, 09:37 AM
  3. Upgrade MDB to accdb using RunTime environment
    By ItsMe in forum Database Design
    Replies: 2
    Last Post: 10-02-2013, 10:09 PM
  4. Replies: 6
    Last Post: 09-20-2012, 04:22 PM
  5. Replies: 13
    Last Post: 06-12-2012, 09:52 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