Hi again and thanx for the star!
In a lot of cases, we need to tell access what datatype we're passing. That's done thru using qualifiers. Text qualifyiers are single quotes ('), date qualifiers are hash (#), numerics doesn't need any.
The "four quotes after eachother" is a technique called "double quoting" including a quote character in the string (another version, is using the chr() function - chr(34) also produces a quote)
Here we're passing a value to a controls defaultvalue property, then one might consider telling Access what kind of value it is. What we're passing, is (in at least two of the samples) a concatinated string. Then we need quotes to "surround" string literals, and the string literals in this case, is the single qutoe.
To try it out, hit CTRL+G and try the following (press enter on each line - ensure the form is open, and that there's a value in the tran_date control):
[tt]? Forms!Tbl_Trans!tran_date.value
? """" & Forms!Tbl_Trans!tran_date.value & """"
? "'" & Forms!Tbl_Trans!tran_date.value & "'"[/tt]
To see how concatinating the string impacts the result. Try experimenting with other things too:
[tt]? Hello World
? "Hello World"
? "Hello" & " - " & "World"[/tt]
- the first one should'nt produce anything (or an error)
Roy-Vidar