kenabbott
asked on
MS Access saving a variable name within a string in a field
Hi
I would like to save the name of a variable within a string saved in a field. I would then like to retrieve the string value within a procedure and use the string/variable concatenation as if written in the procedure itself.
So for example...
Value saved in field = "There are " & varNumber & " days to go"
The procedure where used has a variable varNumber which has a value (eg 3)
The field value is then retrieved (via DLookup for example) and thus the string them reads...
There are 3 days to go
Is this possible and if so what is the correct syntax?
Many thanks
I would like to save the name of a variable within a string saved in a field. I would then like to retrieve the string value within a procedure and use the string/variable concatenation as if written in the procedure itself.
So for example...
Value saved in field = "There are " & varNumber & " days to go"
The procedure where used has a variable varNumber which has a value (eg 3)
The field value is then retrieved (via DLookup for example) and thus the string them reads...
There are 3 days to go
Is this possible and if so what is the correct syntax?
Many thanks
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER