I am getting the impression that you are not familiar with
libraries and think the problem is in the text box
expression. I am pretty sure that the real problem is that
one or more libraries used by your project is the wrong
version, in the wrong folder or was never installed on the
new machine. A missing reference can mess up all kinds of
things, most commonly the VBA library's functions, so the
error on your expression is just a symptom of a deeper
problem.
I don't use A2007, so I'm not sure where it is, but in
earlier versions the check list of library references is on
the VBA Editor's Tools - References menu item.
Checking Linq's idea is worth while too.
--
Marsh
MVP [MS Access]
What is the bad reference? How else would I set the textbox control
value?
:
MeSteve wrote:
I was upgraded to 2007 and the following line throws an error:
Me.DateUpdated = Now()
This is the error I get:
Update or CancelUpdate without AddNew or Edit
If I correct this to work with 2007, will that line of code work with
2003?
Depends on whether your project requires the bad reference
or not.
Well, maybe it's not a bad reference and there is something
else in your code that's causing that line to fail.