G
Guest
I have noticed a weird behavior of Access that I can't understand. I have a
form where I make reference in code to a field such as:
Me.Transaction_Src = "Manual Entry"
Since Transaction_Src is a field in the underlying record source, the form
compiles just fine on my computer, even if I don't have a hidden control
called 'Transaction_Src' bound to that respective field on the form.
However, when I deliver the app to someone else, the compiler stops on that
line of code.
I have been able to fix the problem by just adding the hidden control on to
the form and it compiles on both PC's. This has happened to me before but it
is not consistent.
Can anyone shed some light on this inconsistent behavior. It's driving me
crazy because I can't find any logical reason why a corresponding control for
each field that is referenced is required on some forms but not on others.
form where I make reference in code to a field such as:
Me.Transaction_Src = "Manual Entry"
Since Transaction_Src is a field in the underlying record source, the form
compiles just fine on my computer, even if I don't have a hidden control
called 'Transaction_Src' bound to that respective field on the form.
However, when I deliver the app to someone else, the compiler stops on that
line of code.
I have been able to fix the problem by just adding the hidden control on to
the form and it compiles on both PC's. This has happened to me before but it
is not consistent.
Can anyone shed some light on this inconsistent behavior. It's driving me
crazy because I can't find any logical reason why a corresponding control for
each field that is referenced is required on some forms but not on others.