Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Shaun E on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

update query from option group to check box ....?

Status
Not open for further replies.

patrichek

MIS
Nov 18, 2003
632
US
Hi,
I'm trying to run an update query using the query builder in access 2k3. I want to take option 6 from my contacts table and update a check box (true) in my logoption table. I've done some searching but haven't found the answer yet.
can someone take a look at my code and point me in the right direction?

Code:
UPDATE LogOptionTbl RIGHT JOIN Contacts ON LogOptionTbl.ContactID = Contacts.ContactID SET Contacts.LogOptionGrp = [LogOptionTbl].[DoNotCall]
WHERE (((Contacts.LogOptionGrp)=IIf([Contacts]![LogOptionGrp],6,Null)));

thanks!
 
I think i got it using this:

Code:
UPDATE LogOptionTbl RIGHT JOIN Contacts ON LogOptionTbl.ContactID = Contacts.ContactID SET LogOptionTbl.DoNotCall = Yes
WHERE (((Contacts.LogOptionGrp)="6"));

maybe this will help someone else.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top