Hello, i am writing an append query where certain fields are written to a table, this is working fine but how do i write an if then statement in the query where i am asking to look for 2 different situations?
table with 4 different fields, NameID, RecID, FieldNumber, Amount - tryingt o query and append table if the fieldnumber or amount are null.
INSERT INTO tblEdits ( NameID, RecID, EditedFieldValue, EditedFieldMsg)
SELECT NameID, RecID, FieldNumber, "Missing Field Number" AS EditedFieldMsg
FROM Temprecord
WHERE (FieldNumber Is Null);
How do i make it so that when the field number is missing it will report out "Missing Field Number" in the EditedFieldMsg or if Amount is missing then it will report out "Missing Amount"?
I know that i can write 2 append queries but trying to go away from the repetative work.
thanks Summer
table with 4 different fields, NameID, RecID, FieldNumber, Amount - tryingt o query and append table if the fieldnumber or amount are null.
INSERT INTO tblEdits ( NameID, RecID, EditedFieldValue, EditedFieldMsg)
SELECT NameID, RecID, FieldNumber, "Missing Field Number" AS EditedFieldMsg
FROM Temprecord
WHERE (FieldNumber Is Null);
How do i make it so that when the field number is missing it will report out "Missing Field Number" in the EditedFieldMsg or if Amount is missing then it will report out "Missing Amount"?
I know that i can write 2 append queries but trying to go away from the repetative work.
thanks Summer