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

Yes/No field

Status
Not open for further replies.

Gigi0614

Programmer
Jun 20, 2004
25
0
0
US
Hi!
I am trying to setup a Yes/No field as a control on a form.

I have 2 tables patientInfo and scheduledSurgeries.
On the patientInfo table, I have a YES/NO field called "coveredByInsurance".

How can I create a lookup field on the scheduledSurgeries form that would take the patientID from scheduledSurgeries and do a lookup on coveredByInsurance.

Can I set this up as a control, or would it have to be a subform?
 
=DLookUp("coveredByInsurance", "patientInfo", "patientID='" & Me![name of patientID control] & "'")
If patientID is defined as numeric, get rid of the single quotes.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ222-2244
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top