reference a control on a form

pb21

Registered User.
Local time
Today, 21:22
Joined
Nov 2, 2004
Messages
122
I am trying to change the text on a label on a form I just opened.

DoCmd.OpenForm ("FrmPBCliCheck")

Forms!frmpbclicheck!LblTransferData.Value = "CPS=Y on line " & CLI & " Gamma Transfer Update= " & Y & " " & Z

access complains at this. Help would be appreciated on how to reference the lbl properly.

kind regards
 
Forms!frmpbclicheck!LblTransferData.Caption = something...

Not sure where you're getting y & z... ?
 

Users who are viewing this thread

Back
Top Bottom