Results 1 to 3 of 3
  1. #1
    raziel86 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    2

    System Catalog problems

    I'm having trouble with this question



    Write the SQL commands to obtain the following information from the system catalog:
    a. List every table that you created.
    b. List every field in the Customer table and its associated data type.
    c. List every table that contains a field named ItemNum.

    I'm on part b. The book gives the example of how to do a similar search which is

    SELECT Colname, Coltype
    FROM Syscolumns
    WHERE Tbname=’Item’ ;

    I changed this to

    SELECT Colname, Coltype
    FROM Syscolumns
    WHERE Tbname='Customer';

    and I get the error

    The Microsoft Access database engine cannot find the input table or query 'Syscolumns'. Make sure it exists and that its name is spelled correctly.

    What am I doing wrong? Do I have to create an index first.
    To get part (a) I used the following code

    SELECT *
    FROM MSysObjects
    WHERE Type=1 AND Flags=0;

  2. #2
    NTC is offline VIP
    Windows 7 64bit Access 2013
    Join Date
    Nov 2009
    Posts
    2,392
    in the Navigation Pane there must be a table or query named 'Syscolumns' and it must have the fields that you specify

  3. #3
    raziel86 is offline Novice
    Windows 10 Access 2010 32bit
    Join Date
    Mar 2016
    Posts
    2
    I thought the System Catalog was created automatically and that you could query from it.

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

Similar Threads

  1. Word product catalog from Access 2007 data
    By todavy in forum Import/Export Data
    Replies: 3
    Last Post: 10-14-2015, 10:42 AM
  2. Replies: 1
    Last Post: 10-23-2014, 04:32 PM
  3. Catalog Design
    By manda in forum Database Design
    Replies: 3
    Last Post: 02-27-2013, 05:20 PM
  4. Catalog of Databases
    By sims.anderson2010 in forum Access
    Replies: 2
    Last Post: 12-21-2012, 08:04 AM
  5. Replies: 2
    Last Post: 04-12-2011, 10:14 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