I'm trying to create a label on a report that will display:
"Page 1 of 2" if the page number is odd or "Page 2 of 2" if the page number is even.
I'm having problems just figuring out how to reference my lable and assign it a value.
I've tried: Me.lblPageNum.Report.Caption = "Hello"
but this returns an error when the report is run. It's been a while since I've worked with VBA. Can someone tell me how I can reference this lable and assign the caption a value?
Thanks,
crhodus
"Page 1 of 2" if the page number is odd or "Page 2 of 2" if the page number is even.
I'm having problems just figuring out how to reference my lable and assign it a value.
I've tried: Me.lblPageNum.Report.Caption = "Hello"
but this returns an error when the report is run. It's been a while since I've worked with VBA. Can someone tell me how I can reference this lable and assign the caption a value?
Thanks,
crhodus