My Assistant
![]() ![]() |
|
|
Aug 4 2010, 08:07 PM
Post
#1
|
|
|
UtterAccess Veteran Posts: 419 From: Ireland |
Hello,
I want to set a textbox txtHorizon to be equal to a string strHorizon on report open. But I can't do this in vba like so? Private Sub Report_Open(Cancel As Integer) [txtHorizon] = strHorizon End Sub Why is this? Thank you. |
|
|
|
Aug 4 2010, 09:02 PM
Post
#2
|
|
|
UtterAccess Member Posts: 27 From: San Diego, CA |
Use the format event of the section with the textbox control. Use syntax as below.
Me!txtHorizon.Value = strHorizon |
|
|
|
Aug 5 2010, 12:32 PM
Post
#3
|
|
|
UtterAccess Veteran Posts: 419 From: Ireland |
|
|
|
|
![]() ![]() |
|
Go to Top · Lo-Fi Version | Time is now: 21st May 2013 - 07:37 PM |