All,
I am trying to create an append query based on data currently in a table. For discussion purposes, lets assume 'Table1' contains (A,B,C) in 'Field1'.
I would like the append query to search for a value, 'B' in this case, and if present, create another record 'X'.
Here is the code I have been trying to get to work:
INSERT INTO Table1 ( Field1 )
SELECT IIf(Table1!Field1='B','X',0);
After executing the code, a text box appears requesting the value for 'Table1!Field1'. If I enter 'B', the append query executes successfully.
However, why is this query requeting input from the user? Shouldnt it be using the table?
Thanks.
I am trying to create an append query based on data currently in a table. For discussion purposes, lets assume 'Table1' contains (A,B,C) in 'Field1'.
I would like the append query to search for a value, 'B' in this case, and if present, create another record 'X'.
Here is the code I have been trying to get to work:
INSERT INTO Table1 ( Field1 )
SELECT IIf(Table1!Field1='B','X',0);
After executing the code, a text box appears requesting the value for 'Table1!Field1'. If I enter 'B', the append query executes successfully.
However, why is this query requeting input from the user? Shouldnt it be using the table?
Thanks.