Steve@trop
Registered User.
- Local time
- Today, 00:53
- Joined
- May 10, 2013
- Messages
- 148
I just discovered a couple forms in my database that won't go to a new record when they are opened. I can add records directly to the table so I know it's not locked. I have many other forms that are set up this way that don't have this problem.
On the Form_Load Event I have the following code:
I get the following error:
"Run-Time error '2105'
You can't go to the specified record."
The allow additions property is set to "Yes". The biggest difference I can see between the forms that work and these forms is that these forms contain a subform. The subform is for informational purposes only. It shows a list of recent previous records for this detector. I tried removing the subform but I get the same error so it may have nothing to do with the problem.
Any ideas on this?
On the Form_Load Event I have the following code:
Code:
DoCmd.GoToRecord , PDMVitalityF, acNewRec
"Run-Time error '2105'
You can't go to the specified record."
The allow additions property is set to "Yes". The biggest difference I can see between the forms that work and these forms is that these forms contain a subform. The subform is for informational purposes only. It shows a list of recent previous records for this detector. I tried removing the subform but I get the same error so it may have nothing to do with the problem.
Any ideas on this?