General information
Category:
Forms & Form designer
>Hi!
>
>I am having trouble creating a Calulated ControlSource for a TextBox on a Form.
>
>When I specify an expression as the ControlSource of the TextBox I get an error "The data source for this object must be a variable reference"
>
>e.g. ThisForm.TxtFileName.ControlSource = "juststem(filename) + '.'+ justext(filename)" where filename is a memo field.
>
>I have tried a few different ways but none of them seem to work.
>
>Thanks in advance.
>
>Sarosh
Try, thisform.txtFileName.controlsource = "tablename.memofieldname"
hth,
chris
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only