chris-uk-lad
Registered User.
- Local time
- Today, 07:38
- Joined
- Jul 8, 2008
- Messages
- 271
Hi,
My linked table has a field called REFNO which is a reference number for each record (autonumber).
When i use a form to add a new record, it shows (autonumber) in the textbox and the following error:
"you can't assign a value to this object.
*the object maybe a control on the read only form
*the object maybe on a form that is open in design view
*the value maybe too large for this field. "
I before used the following code but have since removed, neither time has it worked.
My linked table has a field called REFNO which is a reference number for each record (autonumber).
When i use a form to add a new record, it shows (autonumber) in the textbox and the following error:
"you can't assign a value to this object.
*the object maybe a control on the read only form
*the object maybe on a form that is open in design view
*the value maybe too large for this field. "
I before used the following code but have since removed, neither time has it worked.
Code:
varID = DMax("[REFNO]", "Sheet1") + 1
[REFNO].Value = varID