It should work with either the bang (!) or the dot (.) in this context. I am
not familiar with the Sweedish version, but I can't see anything that should
prevent that from working.
Travis, if you are interested in a technical discussion of bang verses dot,
Andy Baron has a description of the difference here:
http://doc.advisor.com/doc/05352
The only common context where you must use the bang is when referring to
fields of a recordset, e.g.:
rs!Surname
works but rs.Surname does not.
I personally find the dot more convenient, because:
a) VBA autocompletes the name for you, which means faster and more accurate
coding, and
b) If you do mistype it (or refer to a field that is no longer there), the
compiler catches the error.
Anything that improves the accuracy of your coding *and* catches problems at
development time has to be worthwhile.
There is one context where the dot can confuse Access. If your form has a
field named (say) City, but there is not control named City on the form, and
you use:
Me.City
then, under rare circumstances, the compiler can spit the dummy and tell you
there is no such thing as Me.City. This certainly happens if you reassign
the RecordSource of the form after it opens, but the problem is more
widespread than that, and can suddenly arise in altering a database that
previously compiled okay. It seems to be one of the many inconsistencies in
the way Access handles the AccessField type. In short, if I am referring to
a field in the form's RecordSource that is not a control on the form, I will
use the bang to avoid this problem.
If you want a rule of thumb, my suggestion is:
Use the dot if you can, and use the bang when the dot doesn't work.
--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Reply to group, rather than allenbrowne at mvps dot org.
Travis said:
I found the solution. I don't know if that has anything to do with it,
but
I'm using the swedish version of access. Anyway, I used exclamation marks
instead of dots, making "[Forms]![Form1]![Combo0]" the correct parameter.
Perhaps Allen can clear up exactly when ! should be used instead of .
but from what I've seen they usually do pretty much the same thing.
Travis
www.travismorien.com