Hello everybody!
Thanks for an amazing forum!
I was checking some of my Access Databases and have just recently encountered an error.
On opening the DB a few missing references were listed in VB. I removed those and checked if (what I think) the core references were still intact.
Then the DB opened without missing reference errors.
I then clicked a button on my MainScreen form, which opens another form Questionnaire.
This then gives me the error message:
Then I debug and it goes to the following code in the Questionnaire form.
The following code appears:
The above (just below Fix!!!) gets highlighted.
What I don't understand is that it used to work, last time I looked, before upgrade to 2010?!
I have tried compact and repair DB but to no avail.
Please help I am really perplexed!
Thank you
Thank you,
Kind regards
Triacona
Thanks for an amazing forum!
I was checking some of my Access Databases and have just recently encountered an error.
We have just recently upgraded to Microsoft Office 2010, including MS Access 2010.error said:Run Time Error '2447' There is an invalid use of the .(dot) or ! operator or invalid parentheses
On opening the DB a few missing references were listed in VB. I removed those and checked if (what I think) the core references were still intact.
Then the DB opened without missing reference errors.
I then clicked a button on my MainScreen form, which opens another form Questionnaire.
This then gives me the error message:
error said:Run Time Error '2447' There is an invalid use of the .(dot) or ! operator or invalid parentheses
Then I debug and it goes to the following code in the Questionnaire form.
The following code appears:
Code:
Private Sub Form_Current()
If Me.NewRecord = True Then
Me.DateInterview.SetFocus
End If
'FIX!!!!!!!!!!!
[highlight]If txtCurrentRecord = Me.txtTotalRecords Then[/highlight]
DateInterview.SetFocus
cmdNextRecord.Enabled = False
cmdPrevRecord.Enabled = True
Else
cmdNextRecord.Enabled = True
If txtCurrentRecord = 1 Then
DateInterview.SetFocus
cmdNextRecord.Enabled = True
cmdPrevRecord.Enabled = False
Else
cmdPrevRecord.Enabled = True
End If
End If
End Sub
What I don't understand is that it used to work, last time I looked, before upgrade to 2010?!
I have tried compact and repair DB but to no avail.
Please help I am really perplexed!
Thank you
Thank you,
Kind regards
Triacona