Results 1 to 3 of 3
  1. #1
    methis is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Mar 2013
    Posts
    1

    difficult query


    Hello I'm looking for help with queries in Access. It's diffucult to explain- everything is explain in car.xlsx in zip file.
    .
    Thank you for any help.

    Methis
    cars.zip

  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
    Consistency in structure is critical when parsing data.

    Your data can have any number of cars in the Notes field.

    Means need VBA custom function to accomplish this using an array and Split() function.

    Alternative is to export the records from [data] to Excel, parse the car data to separate columns using the comma as the separating character. Import records back to Access. Access query can then handle splitting up each car's info by using string manipulation functions - Left(), Right(), Mid(), InStr().
    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
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,726
    Access and Excel are different animals. You need to design your database. Having a number of codified strings in one field screams out a need for Normalization (see http://support.microsoft.com/?id=209534).

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

Similar Threads

  1. Difficult Query!
    By pastormcnabb in forum Queries
    Replies: 2
    Last Post: 04-09-2013, 09:40 PM
  2. Replies: 2
    Last Post: 07-14-2010, 06:10 AM
  3. Creating a difficult qry
    By Aubreylc in forum Queries
    Replies: 8
    Last Post: 02-11-2010, 12:13 PM
  4. A Difficult One...(I Think)
    By NickyThorne1 in forum Access
    Replies: 0
    Last Post: 01-31-2009, 07:56 AM
  5. very difficult (for me!) SELECT query
    By igorbaldacci in forum Queries
    Replies: 1
    Last Post: 12-02-2008, 03:30 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