G
Guest
I am new to Access so need a little help....The insert statement below has got to work but it isn't. When I run it, the 'select' result pops up in a result window but the records are not appending in t_FamilyMailing. Please, can someone tell me why?
INSERT INTO t_FamilyMailing ( FamilyID, MailingID )
SELECT a.FamilyID, 2 AS Expr1
FROM t_Family AS a
WHERE a.Flag=-1;
In case you're wondering what the table layout looks like...
1) t_Family
FamilyID (pk)
Name
Flag
2) t_FamilyMailing
FamilyID (pk)
MailingID (pk)
INSERT INTO t_FamilyMailing ( FamilyID, MailingID )
SELECT a.FamilyID, 2 AS Expr1
FROM t_Family AS a
WHERE a.Flag=-1;
In case you're wondering what the table layout looks like...
1) t_Family
FamilyID (pk)
Name
Flag
2) t_FamilyMailing
FamilyID (pk)
MailingID (pk)