I have 2 global constants declared in the same global module:
Global Const MY_VERSION$ = "1.04"
Global Const ProjectName$ = "MyProj"
I have 2 global procedures designed to return the
value of these 2 constants...
Function GetCurrentRev() As String
GetCurrentRev = MY_VERSION$
End Function
Function GetProjectName( )
GetProjectName = ProjectName$
End Function
I have 2 bound textbox controls on the same form
(frmAdminDoList EntryForm)
referencing the above 2 functions in the 2 textbox's DefaultValue
property. One textbox is named Text106 and the other ProjNameBox. They
are bound to [Rev] and [ProjName] query fields respectively and the
form itself is bound to qryAdminDoList.
When I go to a new rec on that form, the 2 textboxes display #Name?
and "MyProj" respectively. I'm trying to determine why one textbox
displays the value of a global string var and the other does now? If I
run either of the functions in the immediate window - each displays
the expected value of the related global constant. I see these two
textboxes and their related functions and values as virtually
identical and have no earthly idea why one is working and the
other is not.
My earlier thread on this subject was perhaps mis-titled and I'm
picking up from here. After reading this post, if you still think I'm
asking "What's the meaning of #Name?" then feel free to bow
out of this thread.
Global Const MY_VERSION$ = "1.04"
Global Const ProjectName$ = "MyProj"
I have 2 global procedures designed to return the
value of these 2 constants...
Function GetCurrentRev() As String
GetCurrentRev = MY_VERSION$
End Function
Function GetProjectName( )
GetProjectName = ProjectName$
End Function
I have 2 bound textbox controls on the same form
(frmAdminDoList EntryForm)
referencing the above 2 functions in the 2 textbox's DefaultValue
property. One textbox is named Text106 and the other ProjNameBox. They
are bound to [Rev] and [ProjName] query fields respectively and the
form itself is bound to qryAdminDoList.
When I go to a new rec on that form, the 2 textboxes display #Name?
and "MyProj" respectively. I'm trying to determine why one textbox
displays the value of a global string var and the other does now? If I
run either of the functions in the immediate window - each displays
the expected value of the related global constant. I see these two
textboxes and their related functions and values as virtually
identical and have no earthly idea why one is working and the
other is not.
My earlier thread on this subject was perhaps mis-titled and I'm
picking up from here. After reading this post, if you still think I'm
asking "What's the meaning of #Name?" then feel free to bow
out of this thread.
Comment