I have a report (RptReqAcc) that I generate from a table (TblReqAcc).
TblReqAcc is a temporary table that only holds 1 record at a time. It has a lot of fields contained in it (which are listed below):
TblReqAcc:
FldUserName (Datatype: text)
FldRequestDate (Datatype: text)
FldDutyRoster (Text: Yes or Blank)
FldSecurityManager (Text: Yes or Blank)
FldSafetyManager (Text: Yes or Blank)
FldSupplyManager (Text: Yes or Blank)
FldTransportationManager (Text: Yes or Blank)
In Report "RptReqAcc" I would like to write an event procedure for the fields pushed to the report:
Is there a way to write out all of the fields listed above in one IIf DCount() statement instead of writing out each individually.
TblReqAcc is a temporary table that only holds 1 record at a time. It has a lot of fields contained in it (which are listed below):
TblReqAcc:
FldUserName (Datatype: text)
FldRequestDate (Datatype: text)
FldDutyRoster (Text: Yes or Blank)
FldSecurityManager (Text: Yes or Blank)
FldSafetyManager (Text: Yes or Blank)
FldSupplyManager (Text: Yes or Blank)
FldTransportationManager (Text: Yes or Blank)
In Report "RptReqAcc" I would like to write an event procedure for the fields pushed to the report:
Code:
Option Compare Database
Private Sub Report_Load()
If DCount("*", "[TblReqAcc]", "[FldDutyRoster] = '" & Me.FldDutyRoster & "'") > 0 Then
FldDutyRoster.Visible = True
LblDutyRoster.Visible = True
Else
FldDutyRoster.Visible = False
LblDutyRoster.Visible = False
[FONT="Calibri"]End If[/FONT]
End Sub
Is there a way to write out all of the fields listed above in one IIf DCount() statement instead of writing out each individually.