Hello all, I would like to do a DLookup to reference a Yes/No field in my VBA code. My problem is that I don't know what to reference it as. I want to use something like
Dim iBeamNumber As Integer
Dim stWhere As String '-- Criteria for DLookup
Dim stYesNo As "I don't know what to put here"
iBeamNumber = Me.BeamNumber
stWhere = "[qryBeamNumberNeeded].[BeamNumber] = " & "'" & iBeamNumber & "'"
stYesNo = DLookup("[EmailNeeded]", "qryBeamNumberNeeded", stWhere)
The rest of my code will be used to send an email based on the value of the Yes/No field. I also need to know what value it will return (Usually it is "-1" for true and "0" for false)
Thanks in advance