D
Dennis
I am trying to write an event Procedure that when I open
my report, the report looks at a field in the select query
results and if the desired results are produced, the
reports puts an X in a nonbound field in the report. I
have been working on what I think is close but it is not
yet working. Below is what I have:
Private Sub Report_Open(Cancel As Integer)
Me!AM = Null
Me!PM = Null
Me!BH = Null
' Supposed to set unbound report text box to Null
If [SIG1] = "? QAM" Then
Me!AM = "X"
'Supposed to put an X in unbound Text Box named "AM".
End If
End Sub
? represents a wildcard that could be a 1,2, or 3. All "1
QAM", "2 QAM" and "3 QAM" values need an X for the return.
I have many codes that are similar to the above with only
leading numbers and a space that need an X returned in an
unbound Text Box. How can I group them in least amount of
statements?
thanks,
Dennis
my report, the report looks at a field in the select query
results and if the desired results are produced, the
reports puts an X in a nonbound field in the report. I
have been working on what I think is close but it is not
yet working. Below is what I have:
Private Sub Report_Open(Cancel As Integer)
Me!AM = Null
Me!PM = Null
Me!BH = Null
' Supposed to set unbound report text box to Null
If [SIG1] = "? QAM" Then
Me!AM = "X"
'Supposed to put an X in unbound Text Box named "AM".
End If
End Sub
? represents a wildcard that could be a 1,2, or 3. All "1
QAM", "2 QAM" and "3 QAM" values need an X for the return.
I have many codes that are similar to the above with only
leading numbers and a space that need an X returned in an
unbound Text Box. How can I group them in least amount of
statements?
thanks,
Dennis