Results 1 to 2 of 2

VBA in access

Threaded View

  1. #1
    Registered User
    Join Date
    05-30-2012
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    26

    VBA in access

    I have code to do various things in access, such as deleting fields, tables, etc.

    The code consists of "snippets" of SQL, for example to delete fields F6 and F7:

    
    strSQL = "ALTER TABLE [mytable] DROP COLUMN F6, F7"
    
    CurrentDb().Execute strSQL, dbFailOnError
    My question is how can this be done in access VBA, without using SQL statements and if so, would it be quicker?
    Last edited by dugdugdug; 10-11-2012 at 11:07 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1