+ Reply to Thread
Results 1 to 5 of 5

writing cell contents to Access Database

  1. #1
    Registered User
    Join Date
    10-31-2007
    Posts
    6

    writing cell contents to Access Database

    Hi Folks

    I'm looking for a complete working example of how to write a single cell to a Access table using a SQL command.
    More to the point, i'm looking to UPDATE an access table field with a certain record ID with the current contents of a cell. I am using Excel 2003.

    I would be most thankful you give you permission to marry my daughter.

    Thanks in Advance
    Last edited by lushl0sn; 10-02-2008 at 05:37 PM.

  2. #2
    Forum Contributor
    Join Date
    06-03-2008
    Posts
    387
    Here's an example I found that's commented pretty well.
    Please Login or Register  to view this content.

  3. #3
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Row 1 contains the fieldnames. Row 2 contains the data. If you are adding one record for one field value, add the field name in some scratch sheet area and the value in the cell below it and name the range to pass.

    One wife is a handful as it is...
    Please Login or Register  to view this content.
    Last edited by Kenneth Hobson; 10-02-2008 at 04:50 PM.

  4. #4
    Forum Expert Kenneth Hobson's Avatar
    Join Date
    02-05-2007
    Location
    Tecumseh, OK
    MS-Off Ver
    Office 365, Win10Home
    Posts
    2,573
    Here is another method using Update. Update is needed to update the MDB as the recordset is disconnected until then. AddNew is used to add a new record.
    Please Login or Register  to view this content.

  5. #5
    Registered User
    Join Date
    10-31-2007
    Posts
    6
    Thanks Guys!

    You are the best!!!
    The examples worked and I can leave work happy!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Program a cell link to database cell
    By drewdb in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-14-2008, 06:45 PM
  2. When deleting cell contents, they come right back?
    By Paul987 in forum Excel General
    Replies: 3
    Last Post: 03-24-2008, 02:08 PM
  3. Excel formulas for checking contents within a cell.?
    By Aubbie in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 01-02-2008, 03:22 PM
  4. Update Access database through changes in Excel worksheet
    By munkayboi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-31-2007, 07:16 PM
  5. Writing to a database using VBA
    By matpj in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-09-2007, 11:06 AM

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