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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Update yes/no field based on table

Status
Not open for further replies.

ohmbru

Technical User
Jul 13, 2001
161
US
I am trying to make a check box update to "Yes" on my form [frmCHECKLIST]if the [Name] is in a table ([tblTRAINEE]). I'm using the AfterUpdate event. The form is not based on [tblTRAINEE]. [tblTRAINEE] is a simple list of names that is not related to any other part of the database.

Thanks,

Brian
 
check out the dlookup() function
something like this

if dlookup("name","tabltrainee","name = '" & forms!fromchecklist!name & "'" = "" then
me.checkboxname = 0
else
me.checkboxname = -1
end if
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top