IIf statement

awake2424

Registered User.
Local time
Today, 16:57
Joined
Oct 31, 2007
Messages
479
This seems correct, but it is not working.
Code:
=IIf([Results]="Negative","No Variants Detected")
Thank you.
 
Try

=IIf([Results]="Negative","No Variants Detected", "")

If not, verify what the Results field actually contains. "is not working" is pretty vague.
 
Code:
 =IIf([Results]="Negative","No Variants Detected","")

Eventhough the Results field Combobox is Negative the text does not fill in the textbox. Thanks.
 
Are you sure the combo's bound column isn't an ID field or something? Can you post the db here?
 
To test that possibility, place this code in the Form's code module, then make a selection from the Combobox and see what value shows in the Messagebox:

Code:
Private Sub Results_AfterUpdate()
 MsgBox Me.Results
End Sub

Linq ;0)>
 

Users who are viewing this thread

Back
Top Bottom