Results 1 to 3 of 3
  1. #1
    oljees is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jul 2011
    Posts
    1

    Multiple column select

    I have transferred a whole lot of data from spss to access...tables have 400+ columns of data. I get requests to select data out of this, sometimes 200-300 columns a time. Is there a way of inserting a list into the select statement, example SELECT (filename) FROM table;




    In this case, filename is a comma separated list of variables in the table specified in the FROM part?

    any help appreciated!

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,930
    Please clarify. Access table has a limit of 256 fields. How can you have 400+ columns? You can select all fields using wildcard.

    SELECT * FROM tablename;

    Are you executing this SELECT in VBA procedure? What do you mean by 'list of variables in the table specified in the FROM part'?
    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.

  3. #3
    rpeare is offline VIP
    Windows XP Access 2003
    Join Date
    Jul 2011
    Posts
    5,442
    As june pointed out Access limits tables to 255 fields so what I'm assuming is that you want a method to extract information from a text file for further examination. I'm enclosing an example that will extract information from specific fields in a large text file. The only thing I don't know is whether it will support arrays of 400+, that's for you to test.

    The labor intensive part of this is to define a structure for your text files, once that's in place it's really pretty easy to get everything in. If you have multiple possible text file formats you'd have to define each one and also a method to pull them up in your list box. In my example I assume there's only one possible text file type.

    There is only one form, on that form you have to select the fields you want to extract (my example is only 8 fields) and a table name you want to create. Click the create table button to actually make the table. Click the import data button to run the conversion on your text file

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

Similar Threads

  1. creating database with multiple column
    By ultimate in forum Database Design
    Replies: 27
    Last Post: 07-21-2011, 02:49 PM
  2. from excel - multiple column to one
    By Eitas in forum Import/Export Data
    Replies: 1
    Last Post: 05-12-2011, 02:07 PM
  3. Replies: 1
    Last Post: 03-14-2011, 10:04 AM
  4. Multiple column display on form
    By RANCHLAW56 in forum Forms
    Replies: 1
    Last Post: 01-06-2011, 02:44 PM
  5. Add new column in a select query
    By ysrini in forum Queries
    Replies: 3
    Last Post: 02-03-2010, 06:58 AM

Tags for this Thread

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