Results 1 to 2 of 2
  1. #1
    yawalias is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2010
    Posts
    2

    Question Get parameter prompt

    Hi,



    I am trying to update a column (SECURITY KEY) in one table based BY REFERENCING two other tabels. I have joined the tables. I keep getting a prompt to enter a security key when I run the update query. Does anyone know why. I am not making progress with this and have not done much with Access in the past few years. Thanks!

    UPDATE (CATMAN_SURVEY_OPERATIONS INNER JOIN ARCHIVEINVENTORYALL ON CATMAN_SURVEY_OPERATION.NAME=ARCHIVEINVENTORYALL.[SURVOPS/ID]) INNER JOIN SECURITY_CHARACTERISTICS ON ARCHIVEINVENTORYALL.CLASSIFICATION=SECURITY_CHARAC TERISTICS.CLASSIFICATION SET ARCHIVEINVENTORYALL.[SECURITY KEY] = CATMAN_SURVEY_OPERATIONS.SECURITY_KEY
    WHERE (((ARCHIVEINVENTORYALL![SURVOPS/ID]) LIKE CATMAN_SURVEY_OPERATION!NAME) AND ((CATMAN_SURVEY_OPERATION!SECURITY_KEY) LIKE SECURITY_CHARACTERISTICS!SECURITY_KEY) AND ((ARCHIVEINVENTORYALL!CLASSIFICATION) IS NOT NULL) AND ((ARCHIVEINVENTORYALL![SECURITY KEY])<>0) AND ((ARCHIVEINVENTORYALL![SURVOPS/ID]) IS NOT NULL) AND ((ARCIVEINVENTORYALL!CLASSIFICATION) IS NOT NULL));

  2. #2
    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,725
    I think you have a few issues but trying to update a record in a multiple join is another.

    Your naming convention, with fields like SURVOPS/ID will come back to haunt you. You should avoid special characters and blanks in field and object names.

    This syntax ARCHIVEINVENTORYALL!CLASSIFICATION is for vba recordsets, not SQL.

    The LIKE operator LIKE CATMAN_SURVEY_OPERATION!NAME is meant for finding things with embedded strings or partial matches. If you mean =, then use equal.

    You have inconsistent spelling of the Table CATMAN_SURVEY_OPERATIONS and CATMAN_SURVEY_OPERATION.

    I think you should show us the relationships between your tables and tell us exactly what it is you are trying to do.

    Do you really need all three tables? Do you really want to use a like operator when updating records?

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

Similar Threads

  1. Replies: 13
    Last Post: 01-10-2012, 09:56 AM
  2. Security/Error prompt
    By nichmeg in forum Programming
    Replies: 4
    Last Post: 11-06-2011, 07:12 PM
  3. Save changes to layout prompt
    By HunterEngineeringCoop in forum Access
    Replies: 2
    Last Post: 07-07-2011, 08:35 AM
  4. Query prompt issue
    By zbug in forum Queries
    Replies: 1
    Last Post: 07-31-2010, 04:43 PM
  5. Password Prompt
    By thestappa in forum Security
    Replies: 1
    Last Post: 01-28-2010, 09:19 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