+ Reply to Thread
Results 1 to 3 of 3

Problem updating Access record in Table

  1. #1
    Registered User
    Join Date
    06-09-2010
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    4

    Problem updating Access record in Table

    Hi there,

    As the title suggests i'm having a wee bit of trouble updating a record in an Access 2007 database using the following macro in a workbook

    I get the following message:

    "Run time error -2147217913(80040e07)
    "Data type mismatch in criteria expression"

    Please Login or Register  to view this content.
    Any help/advice would be greatly appreciated

    Thanks

    Noel

  2. #2
    Forum Expert davegugg's Avatar
    Join Date
    12-18-2008
    Location
    WI, US
    MS-Off Ver
    2010
    Posts
    1,884

    Re: Problem updating Access record in Table

    What data type is propset in the table? It looks like you have a double for fieldVal, but you are putting single quotes around it in the SQL. I don't believe numbers need quotes. Same for recID.

    If that doesn't work, which line is giving you the error?
    Is your code running too slowly?
    Does your workbook or database have a bunch of duplicate pieces of data?
    Have a look at this article to learn the best ways to set up your projects.
    It will save both time and effort in the long run!


    Dave

  3. #3
    Registered User
    Join Date
    06-09-2010
    Location
    ireland
    MS-Off Ver
    Excel 2007
    Posts
    4

    Re: Problem updating Access record in Table

    Dave,

    Great help, it was the quotes causing all the trouble.
    I also had to remove the following:

    Please Login or Register  to view this content.
    at the end.

    Thanks a million

    Noel

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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