+ Reply to Thread
Results 1 to 6 of 6

Select multivalued field from access table

  1. #1
    Registered User
    Join Date
    08-18-2014
    Location
    Slovakia
    MS-Off Ver
    2010
    Posts
    3

    Select multivalued field from access table

    Hello,

    Im not a programmer, noob in sql statements, google helps me every day . But I cant find anything helpful concerning my simple problem I hope. I have a multivalued field in the one field in of access table.
    mvf.JPG

    My macro code:
    Please Login or Register  to view this content.
    When there is only one value in the field "Col1" (Order or Operation) I get correct value. But it there are both I get nothing (value is empty).
    How to solve it?

    Thanks.
    Last edited by ThePegass; 05-18-2017 at 06:18 AM.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Select multivalued field from access table

    I'm afraid you can't use ADO for multi-valued fields, you need to use DAO and OpenDatabase.

    Off the top of my head, and untested, here's how the code might look.
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Registered User
    Join Date
    08-18-2014
    Location
    Slovakia
    MS-Off Ver
    2010
    Posts
    3

    Re: Select multivalued field from access table

    Thank you. I got mismatch error on line:
    Please Login or Register  to view this content.

  4. #4
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Select multivalued field from access table

    Like I said that code was off the top of my head and untested.

    Not at home right now but I'll test it when I get back.

    In the meantime I would suggest looking at the Fields collection of the recordset rsRecord in the Locals Window.
    Last edited by Norie; 05-17-2017 at 08:53 AM.

  5. #5
    Registered User
    Join Date
    08-18-2014
    Location
    Slovakia
    MS-Off Ver
    2010
    Posts
    3

    Re: Select multivalued field from access table

    Solved, in the end I found useful code, modified little bit:
    Please Login or Register  to view this content.

  6. #6
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,646

    Re: Select multivalued field from access table

    Sorry for not posting 'useful' code.

+ 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. Get a table from website after select some field
    By mrkhchan in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 07-13-2015, 04:14 AM
  2. Combobox value not updating in access table Field from recordset
    By nicenari in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-29-2015, 12:25 PM
  3. Check if column D value is present in Access table Ref Field VBA
    By aman1234 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-15-2014, 06:01 AM
  4. access vba to change data type of a field in a table
    By ewong in forum Access Programming / VBA / Macros
    Replies: 0
    Last Post: 09-12-2012, 03:32 PM
  5. Calculate no of days due in Access Table Field.
    By ebin charles in forum Access Tables & Databases
    Replies: 3
    Last Post: 11-01-2011, 12:27 PM
  6. Retreiving list of table & field names from Access into Excel using VBA
    By shivboy in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-15-2006, 03:09 AM
  7. [SOLVED] Field Select in a Pivot Table
    By Vicki in forum Excel General
    Replies: 2
    Last Post: 05-12-2006, 03:35 PM

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