F
Fred Boer
Hello!
I have a form that I use in two different situations. Normally the form uses
a saved query as its recordsource. In this situation "me.book_ID" is used
without error in some code.
In another situation I load a different recordsource using code. In this
case, the use of "me.book_ID" causes an error: 2465.. can't find field. I've
checked that the field is actually present in the recordset, and if I create
a bound textbox to this field, it is loaded with the correct value. I
suppose a simple solution is to refer to an invisible textbox in both cases,
but I'm curious why it doesn't work to refer to the field when the recordset
isn't a saved query.
Thanks!
Fred Boer
I have a form that I use in two different situations. Normally the form uses
a saved query as its recordsource. In this situation "me.book_ID" is used
without error in some code.
In another situation I load a different recordsource using code. In this
case, the use of "me.book_ID" causes an error: 2465.. can't find field. I've
checked that the field is actually present in the recordset, and if I create
a bound textbox to this field, it is loaded with the correct value. I
suppose a simple solution is to refer to an invisible textbox in both cases,
but I'm curious why it doesn't work to refer to the field when the recordset
isn't a saved query.
Thanks!
Fred Boer