I was wondering if anyone can help me with my dilemma. I have this report which I'd like for it to call a function every time it loads (see codes below):
Private Sub Report_Load()
lblCC.Caption = getSignBlock()
End Sub
This function is from a module I created (which I'm not even sure if I did correctly):
Public Function getSignBlock() As String
Dim strSignBlock As String
strSignBlock = DLookup("CC", "SignBlock", "ID = 1")
getSignBlock = strSignBlock
End Function
The table "SignBlock" is not related to the records generated by the report. Can someone tell me what I'm doing wrong? I would greatly appreciated any help. Thank you!
Private Sub Report_Load()
lblCC.Caption = getSignBlock()
End Sub
This function is from a module I created (which I'm not even sure if I did correctly):
Public Function getSignBlock() As String
Dim strSignBlock As String
strSignBlock = DLookup("CC", "SignBlock", "ID = 1")
getSignBlock = strSignBlock
End Function
The table "SignBlock" is not related to the records generated by the report. Can someone tell me what I'm doing wrong? I would greatly appreciated any help. Thank you!