Results 1 to 3 of 3
  1. #1
    za20001 is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Apr 2011
    Posts
    5

    Basic Question

    Hi -- Beginner user of Access 2000.



    I have two tables, (A) and (B).

    Column (1) of table (A) holds a series of unique text values (names).
    Column (2) of table (B) holds a series of unique text values (names).
    Column (4) of table (B) holds numbers (salaries) associated with the names in column (2).

    I want to output a table thus:
    Column (1) of table (A) | Column (4) of table (B), Column (1) of table (A) = Column (2) of table (B), NULL otherwise

    Table (A) has additional information I want to include with each record, so running a query of table (B) alone won't work.

    My code is below. Thanks.

    SELECT 2008counts.user_name, 2008fees.fees
    INTO 2008complete
    FROM 2008counts
    LEFT OUTER JOIN 2008fees
    ON 2008counts.user_name = 2008fees.user_name
    ;

    I receive this error:
    "Syntax error (missing operator) in query expression '2008counts.user_name'."
    After clicking, 'OK', the cursor positions at 'counts' in the SELECT line.

    Using Access2000.

  2. #2
    ssanfu is offline Master of Nothing
    Windows 2K Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It seems to me that somewhere (or is it somewhen) I read that table names should never begin with a number....

    Anyway, try this:
    Code:
    SELECT [2008counts].user_name, [2008fees].fees
    INTO 2008complete
    FROM 2008counts
    LEFT OUTER JOIN 2008fees
    ON [2008counts].user_name = [2008fees].user_name;
    I looks to me that some Excel spreadsheets were imported into Access - this indicates that the Access structure is not normalized.... could cause more problems......

  3. #3
    za20001 is offline Novice
    Windows 7 64bit Access 2000
    Join Date
    Apr 2011
    Posts
    5
    That worked. Thanks. Good to know -- won't make tables again that start with numbers.

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

Similar Threads

  1. Basic Layout Question
    By NewShoes in forum Database Design
    Replies: 1
    Last Post: 02-15-2011, 09:59 AM
  2. basic (sorry) question
    By wokeeffe in forum Database Design
    Replies: 1
    Last Post: 12-21-2010, 11:20 AM
  3. Basic Question
    By Dalagrath in forum Forms
    Replies: 12
    Last Post: 10-31-2010, 05:36 AM
  4. Really basic question
    By jimlaw in forum Forms
    Replies: 1
    Last Post: 07-27-2009, 07:20 AM
  5. Basic Question
    By chris11590 in forum Forms
    Replies: 0
    Last Post: 08-04-2008, 05:57 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