Results 1 to 2 of 2
  1. #1
    frustrated_accessor is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    2

    Query/table modification/update using vba and possibly dlookup with if/else statement


    I have sql table with 50 columns and 1million records. I have a query that matches user serial numbers against the master list to get a return of hits. My query is a count of records for each column, so the return is only 1 record with a count of matches per column. Some of the columns do not have any values. My challenge is to only have a query with columns that have a value greater than 0.

    In other words, I want to reduce the number of columns from 50 to whatever has a value.

    I can't think of a good way to do this, I tried using dlookup with an if/else statement, but I would have to create a new statement for each column. Can anybody offer a functional way to do this?

    Thanks for all of your help,
    Bob

  2. #2
    frustrated_accessor is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Feb 2013
    Posts
    2
    How about this, can anybody show me how to remove columns from a table where the column contains no data?
    Last edited by frustrated_accessor; 02-27-2013 at 08:06 AM. Reason: rephrase question

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

Similar Threads

  1. Replies: 3
    Last Post: 03-20-2012, 10:31 AM
  2. Query modification
    By endri81 in forum Queries
    Replies: 28
    Last Post: 02-29-2012, 09:50 AM
  3. Update datetime stamp on record modification
    By sitaramnayak in forum Access
    Replies: 1
    Last Post: 10-12-2011, 11:54 AM
  4. Update statement with linked table join
    By Guigui in forum Queries
    Replies: 6
    Last Post: 09-17-2010, 04:47 AM
  5. update table in loop based on IF statement
    By LALouw in forum Access
    Replies: 0
    Last Post: 07-26-2009, 08:46 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