Results 1 to 3 of 3
  1. #1
    nzkfc is offline Novice
    Windows 7 32bit Access 2010 32bit
    Join Date
    May 2014
    Location
    New Zealand
    Posts
    1

    Question Access Help - Populating code from list of data

    Hi guys,

    Hoping I can get some help here.

    Background is I have two sets of data, one a list of a simple set of ID's (one ID per line) and I have a piece of repetitive coding that needs one of the lines inputted into a place in the code (hope that makes sense.

    An example:


    (List of data)
    01-12345
    02-12345
    03-12345

    (Code block - ignore code lol it's made up)

    <check>
    ("<code here>")
    if () then
    finish
    </check>


    So once the "whatever" method is used, I will end up with a code that looks like this:

    <check>
    ("01-12345")
    if () then
    finish
    </check>

    <check>
    ("02-12345")
    if () then
    finish
    </check>

    <check>
    ("03-12345")
    if () then
    finish
    </check>


    Let me know if I'm not making sense :P my experience with Access is null :P

    Cheers!

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,641
    Presuming you mean a table for the list, you can open a recordset on it and loop that table, using the current value in your other code. Hard to be more specific with seeing how you actually want to use it.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,624
    So you don't have code, just an idea for code?

    You need VBA?

    What do you mean by 2 sets of data - 2 tables? What exactly do you need to do? What is it you want this code to accomplish? Do you want to update records? Do you want to find matching records?
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 2
    Last Post: 05-01-2014, 06:51 PM
  2. Replies: 4
    Last Post: 07-13-2012, 06:30 AM
  3. List populating based on criteria
    By Stedman in forum Forms
    Replies: 3
    Last Post: 08-06-2011, 12:46 PM
  4. Replies: 4
    Last Post: 05-24-2011, 08:19 AM
  5. Populating list box with column heading?
    By kawi6rr in forum Programming
    Replies: 1
    Last Post: 08-13-2010, 12:51 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums