BullHalseyUSN
Technical User
tough for me!
Greetings Friends,
I have a tblSailors where every member is part of a Dept. tblDept is related to the former by a foreign key in tblSailor, DeptID.
I am trying to make a "group update" feature that will assign a bunch of members to a given department.
My SQL is all "jacked up." What I would like it to say is,
"Update Dept ID based on what is in [Forms]![frmGroupUpdate]!Combo69.
Here is the blather that I've come up with, and it doesn't work, but it does update with a wrong value so I'm onto something. The ?'s are because I don't know what those operators do.
UPDATE tblSailors SET tblSailors.DeptId = IIf([Forms]![frmGroupUpdate]!Combo69=True,?,[?])
WHERE (((tblSailors.GroupUpdate)=True));
Thanks for any help. BH
Greetings Friends,
I have a tblSailors where every member is part of a Dept. tblDept is related to the former by a foreign key in tblSailor, DeptID.
I am trying to make a "group update" feature that will assign a bunch of members to a given department.
My SQL is all "jacked up." What I would like it to say is,
"Update Dept ID based on what is in [Forms]![frmGroupUpdate]!Combo69.
Here is the blather that I've come up with, and it doesn't work, but it does update with a wrong value so I'm onto something. The ?'s are because I don't know what those operators do.
UPDATE tblSailors SET tblSailors.DeptId = IIf([Forms]![frmGroupUpdate]!Combo69=True,?,[?])
WHERE (((tblSailors.GroupUpdate)=True));
Thanks for any help. BH