OK, making progress.
How do I account for a null value in the function?
For example, two of the functions are date type. Sometimes, the date has
not input, resulting in the public variable being assigned a Null
value.
Thx.
message
mWorkshopName is a public variable: you don't have to pass it to the
function.
Public Function fWorkshopName() as String
fWorkshopName = mWorkshopName
End Function
and then use
=fWorkshopName()
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
OK, an "obvious" error on my part.
In the global module, I added:
Public Function fWorkshopName(mWorkshopName) as String
fWorkshopName = mWorkshopName
End Function
then on the data field of the textbox on the form, I put
=fworkshopname([mworkshopname])
But no go. I get an "invalid use of null" on the function
assignment
when
I
try to open the report.
Where's my problem?
Thx.
message
Create a function that returns the value of the variable, and use the
function.
--
Doug Steele, Microsoft Access MVP
(no e-mails, please!)
in message
How do I get a global variable to appear on a report?
Using a textbox and assigning it the value doesn't work
For example, putting =[mVariable01] in the textbox's data field
fails.
Thx.