Page 2 of 2 FirstFirst 12
Results 16 to 20 of 20
  1. #16
    scotty22 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jun 2011
    Posts
    29
    OK. I've created s sample db with a working query.

    Hope this helps.

    Kind regards,



    Scotty22

  2. #17
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    I don't know that there's a way to do what you're wanting in straight Access SQL. In my interweb travels I found something similar but I don't think it would work in your case: In the example I found, the value that was being looked up was always in the same column. You're looking for the name of the column itself.

    If you want to check it out though, feel free.

    The far easier solution would be to use VBA and a temporary Table. It would also have the speed increase you're looking for.

  3. #18
    scotty22 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jun 2011
    Posts
    29
    I thought as much.

    Thanks for your help.

    Kind regards,

    Scotty22

  4. #19
    scotty22 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jun 2011
    Posts
    29
    Actually, I may need some help for this if possible. I really need to be able to do what I was trying to do before with the DLookup. Any hints on how to perform this through VBA?

    Kind regards,

    Scotty22

  5. #20
    Rawb is offline Expert
    Windows XP Access 2000
    Join Date
    Dec 2009
    Location
    Somewhere
    Posts
    875
    Sure!

    I'll just list the raw basics here, so if you have any more questions, please ask. I'd be happy to help further!

    Step 1: Create a Form with spots for the user to enter two Valuation Dates. Add a Command Button to the Form.

    Step 2: In the OnClick Event of your Command Button, create a Sub that uses a Recordset (the Recordset is a list of all the Failed_Cols Records matching the valuation dates on your Form). Loop through the Recordset, finding the column name and it's value.

    Step 3: Write this information to a temp Table.

    Step 4: Display the contents of your temp Table!

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. alternative to autofeupdate
    By TheShabz in forum Programming
    Replies: 3
    Last Post: 07-19-2011, 11:38 AM
  2. alternative to nested iifs
    By scotty22 in forum Queries
    Replies: 16
    Last Post: 06-28-2011, 09:21 AM
  3. Alternative to mapnetworkdrive?
    By dwcolt in forum Programming
    Replies: 1
    Last Post: 05-11-2011, 08:58 AM
  4. Alternative to AbsolutePosition?
    By snorkyller in forum Access
    Replies: 4
    Last Post: 03-04-2011, 01:04 PM
  5. Alternative to Join Property???
    By arthura in forum Queries
    Replies: 1
    Last Post: 05-22-2009, 12:17 AM

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