Help!!! .Oldvalue method does not work error msg: Method or data member not found
What did i do wrong? Please help!
S = Me.Mid.Oldvalue & vbnewline s = s & Me.Study.oldvalue & vbnewline logit "Changed Scorecard", s
Reply from Richard Rost:
First, you need to use a ! not a . to refer to a field on a form:
Forms!FieldName
or Me!FieldName
Next, MID is a reserved word. It's used in text string functions. You'll either have to change it (which I would recommend) or change your code to:
Me![Mid].OldValue
You can't use a reserved word like Mid, Left, Right, Date, Time, Now, etc. for a field name. If you do, you always have to remember to enclose it inside of [brackets] in your code, macros, and queries.
Sorry, only students may add comments.
Click here for more
information on how you can set up an account.
If you are a Visitor, go ahead and post your reply as a
new comment, and we'll move it here for you
once it's approved. Be sure to use the same name and email address.