+ Reply to Thread
Results 1 to 9 of 9

Excel to get records from MS Access

  1. #1
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Excel to get records from MS Access

    Hi All,

    I want to get the data only of the name that will appear in L1 - this is the part i'm having trouble.

    I'm having trouble to get the records from MS Access if I set WHERE = Name

    But If only get all the records it works fine.

    Anyone can help?

    Thanks.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Excel to get records from MS Access

    Not downloaded your attachment but have you delimited the value for Name ....?

  3. #3
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Re: Excel to get records from MS Access

    I think its not about delimited.

    here's the code

    Please Login or Register  to view this content.
    the error im getting is "Too few parameters. Expected 1."

  4. #4
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Excel to get records from MS Access

    Name is a Text/String field. You needed to delimit the value you are passing in.

    Using s phone so no code examples but try adding an apostrophe before and after...

    ...Name] = ' " & Range("L1").Value &" ' "

    Spaces added for clarity, remove them in your code

  5. #5
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Re: Excel to get records from MS Access

    Still same.

  6. #6
    Forum Expert
    Join Date
    02-14-2009
    Location
    .
    MS-Off Ver
    ................
    Posts
    2,840

    Re: Excel to get records from MS Access

    There's nil information in that. "Still same" without showing what you changed to get the 'still same' is pointless.

    Read this

  7. #7
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Re: Excel to get records from MS Access

    Will try again tomorrow. What i meant in still same is its still error sorry about that. That was my mistake for not making it clear

  8. #8
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: Excel to get records from MS Access

    remove the spaces from the single '. I don't know why you are using ADODB and DAO

    from
    Please Login or Register  to view this content.
    To
    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  9. #9
    Forum Contributor
    Join Date
    06-07-2016
    Location
    Manila
    MS-Off Ver
    365
    Posts
    292

    Re: Excel to get records from MS Access

    Well that was dumb of me for not trying that.

    Thanks all especially mike and cytop

+ 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. Excel to update records in MS Access
    By aarona in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-28-2017, 05:29 AM
  2. Delete records in access from vba excel
    By Eoam13 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-12-2015, 12:20 PM
  3. Excel Table to Access Records
    By GBR2L in forum Excel General
    Replies: 3
    Last Post: 12-10-2010, 04:59 PM
  4. Excel to Access: Updating records
    By alexwhite in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-16-2006, 10:40 AM
  5. Linking Access Records to Excel
    By MayraEllen in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 08-21-2006, 02:40 PM
  6. Linking access records in to excel
    By jho in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-13-2005, 10:05 AM
  7. Access Records into Excel
    By KJGradwell in forum Excel General
    Replies: 2
    Last Post: 10-04-2005, 02:05 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