D
Diarmuid
Hi
I have a database (db1) which I imported into a new database (db2). Now
it won't compile. Its not a references problem. The problem seems to be with
field names.
For example, I have a field called InvoicePosted. This is the source of a
check box called chkPosted. In my code I have a line with
Me.InvoicePosted = True
This works fine in db1 and actually autofills when I type Me.Inv...
In db2, when I complie I'll get "Method or data member not found". If I
rename as Me.chkPosted, all works well. Me.InvoicePosted will not auto fill.
On another form, I have a field in the table called CustomerCode. In db1,
this isn't actually bound to a text box, its not on the form. But it still
appears in autofill and I can reference it in code as Me.CustomerCode. This
won't work in db2 unless I drag the field onto the form. Should all fields
refered to in code actually be on the form?
db1 works fine. Why would the differences happen? I've seen this kind of
problem before, and never did find out the reason.
Thanks
Diarmuid
I have a database (db1) which I imported into a new database (db2). Now
it won't compile. Its not a references problem. The problem seems to be with
field names.
For example, I have a field called InvoicePosted. This is the source of a
check box called chkPosted. In my code I have a line with
Me.InvoicePosted = True
This works fine in db1 and actually autofills when I type Me.Inv...
In db2, when I complie I'll get "Method or data member not found". If I
rename as Me.chkPosted, all works well. Me.InvoicePosted will not auto fill.
On another form, I have a field in the table called CustomerCode. In db1,
this isn't actually bound to a text box, its not on the form. But it still
appears in autofill and I can reference it in code as Me.CustomerCode. This
won't work in db2 unless I drag the field onto the form. Should all fields
refered to in code actually be on the form?
db1 works fine. Why would the differences happen? I've seen this kind of
problem before, and never did find out the reason.
Thanks
Diarmuid