I am using the code below to pull the inuse reagents into a form. The code works great (Thanks David R for all your help). Is it possible to only pull the inuse reagent If [QC] has a date associated with it? In other words,
tblExtraction
Lot Kit QC Inuse Exp Reactions
1229788 Purelink gDNA 22-Jan-13 FALSE 22-Jan-14 50
1388047 Purelink gDNA 19-Nov-13 TRUE 19-Nov-15 50
Since 1388047 is Inuse it transfers to the form. If the QC was blank is it possible to prompt the user with an error saying "not QC'd".
Thank you.
tblExtraction
Lot Kit QC Inuse Exp Reactions
1229788 Purelink gDNA 22-Jan-13 FALSE 22-Jan-14 50
1388047 Purelink gDNA 19-Nov-13 TRUE 19-Nov-15 50
Since 1388047 is Inuse it transfers to the form. If the QC was blank is it possible to prompt the user with an error saying "not QC'd".
Code:
If Me.Text45 = "Test1" Or Me.Text45 = "Test2" Then
Me.Text61 = DLookup("[Kit]", "[tblExtraction]", "[Inuse] = -1")
Me.Text63 = DLookup("[Lot]", "[tblExtraction]", "[Inuse] = -1")
Me.Text65 = DLookup("[QC]", "[tblExtraction]", "[Inuse] = -1")
Me.Text67 = DLookup("[Exp]", "[tblExtraction]", "[Inuse] = -1")