D
Dennis
All,
I'm on XP Pro w SP3 using Access on XP Office Pro w SP3.
My computer data entry form's record source is a query which join the
customer and computer tables. The last two fields on the computer table is
AddDate and ChgDate. These fields are both set in the Form's Before Update
event using the following code.
If Me.NewRecord Then AddDate = Now() ' Date stamp the
records
ChgDate = Now()
Access is telling me that AddDate is an undefined variable. I know it is
not because I copied and pasted the names from the table defintion window to
the above code. I also checked the names in the query and they are spelled
the same.
I use the above code in another form and it works. The only difference I
can see is Form A's record source is a physical table and this form's record
source is a logical view of the customer and computer tables.
Any idea why I get this error?
I'm on XP Pro w SP3 using Access on XP Office Pro w SP3.
My computer data entry form's record source is a query which join the
customer and computer tables. The last two fields on the computer table is
AddDate and ChgDate. These fields are both set in the Form's Before Update
event using the following code.
If Me.NewRecord Then AddDate = Now() ' Date stamp the
records
ChgDate = Now()
Access is telling me that AddDate is an undefined variable. I know it is
not because I copied and pasted the names from the table defintion window to
the above code. I also checked the names in the query and they are spelled
the same.
I use the above code in another form and it works. The only difference I
can see is Form A's record source is a physical table and this form's record
source is a logical view of the customer and computer tables.
Any idea why I get this error?