SQL in Report
From: Dennis (anonymous_at_discussions.microsoft.com)
Date: 04/30/04
- Next message: tina: "Re: Help with code to run query and test a field in the record"
- Previous message: Duane Hookom: "Re: Help!! Problem with query"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 29 Apr 2004 19:17:51 -0700
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
- Next message: tina: "Re: Help with code to run query and test a field in the record"
- Previous message: Duane Hookom: "Re: Help!! Problem with query"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|
|