I've inherited a db and I'm getting a compile error in my changed version (imported all objects from the old version and made some code changes) which the original version does not error when compiled.
It is on the following line
lngJobID = Me.JobID.Value
It gives the error "Method or data member not found" and highlights JobID
If I change the code to Me!JobID.Value the error goes away. But now I have many lines to change to bang instead of . throughout the entire db as other forms are doing the same kind of referencing with a period.
So a couple of questions.
1. When I go to design view of the form and look in the property sheet dropdown "JobID" isn't listed. What other things besides a form control can "Me" be referencing, or why can't I see JobID in the dropdown? It can't reference parent or subform controls using this syntax, can it? A record source field name? The dropdown can't be filtered based on what is selected on the form, or any other way, can it?
2. Any idea why the new version of the db won't accept . whereas the old db did? The intellisense on the new db doesn't show any controls starting with 'J' after typing Me. But the old db shows 5. They are not viewable from the property sheet dropdown on the old db either.