Results 1 to 3 of 3
  1. #1
    pka4916 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    17

    Primary Key in Acces 2007

    Does anyone know why a Primary Key in a table makes a query not work anymore?



    If I use like select * from mytable then I get 0 records
    and when I remove the primary key for my Autofield integer then I see
    all the records.

    This was working fine in Access 2003, but in 2007 if refuses to work.
    Even created a new 2007 Db, and it won't work.

    Any thoughts?

  2. #2
    NoellaG's Avatar
    NoellaG is offline VIP
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Jun 2010
    Location
    Belgium
    Posts
    1,170
    Hi,

    select * should always return all fields and without any criteria it returns all records. Are you sure there is no WHERE clause somewhere? Could you look at the SQL view and post the SQL-statement?

    gr
    NG

  3. #3
    pka4916 is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Oct 2011
    Posts
    17
    Yes, I am sure.

    The SQL is Select * from mytable;

    I had a different thread about something else, and this was causing all the
    problems.

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

Similar Threads

  1. Acces or excel, for handleing my data?
    By oo0tommyk0oo in forum Access
    Replies: 1
    Last Post: 07-07-2011, 11:27 AM
  2. Replies: 1
    Last Post: 11-15-2010, 06:15 AM
  3. Replies: 1
    Last Post: 03-18-2010, 09:12 AM
  4. Acces 2003 MUI error
    By coudu in forum Access
    Replies: 0
    Last Post: 03-15-2010, 04:53 AM
  5. acces listbox hatası(acces debug)
    By carso in forum Access
    Replies: 1
    Last Post: 09-22-2009, 04:11 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