I recently created a database in Access 2000 that has been distributed to multiple people using various versions of Access. Each person is using it as a standalone database.
The database has multiple forms that collect information on individual people. In fact there are 5 forms per person. The first and second form write data to the same table. The VBA code below is what happens when the user continues to the second form to enter more data. A user who has Access 2003 receives a Runtime error 3075 - Syntax error (missing operator) in query expression 'Participant_In fo.'. at this point. The last line of code is what is indicated to be the problem. However, I do not get that error when testing the database in Access 2000.
Can anyone provide a hint as to the possible problem?
Thanks!
The database has multiple forms that collect information on individual people. In fact there are 5 forms per person. The first and second form write data to the same table. The VBA code below is what happens when the user continues to the second form to enter more data. A user who has Access 2003 receives a Runtime error 3075 - Syntax error (missing operator) in query expression 'Participant_In fo.'. at this point. The last line of code is what is indicated to be the problem. However, I do not get that error when testing the database in Access 2000.
Can anyone provide a hint as to the possible problem?
Thanks!
Code:
Private Sub GoToEmpForm_Label_Click()
If IsNull(Me![SSN]) Or (Me![SSN]) = "" Then
MsgBox "Please select a SSN before proceeding!", vbOKOnly, "Invalid Search Criterion!"
Me!SSN.SetFocus
Exit Sub
ElseIf IsNull(Me!LWIA_Combo) Or Me!LWIA_Combo = "" Then
MsgBox "Please select a LWIA before proceeding!", vbOKOnly, "Missing Entry"
Exit Sub
ElseIf Nz(Me.WSOther, "") = "" And Me.WIA_Stat_Opt = 4 Then
Cancel = True
MsgBox "Please enter 'Other Adult' WIA Status", , "Missing Entry"
Me.WSOther.SetFocus
Exit Sub
End If
DoCmd.GoToRecord , , acNext
DoCmd.GoToRecord , , acPrevious
DoCmd.OpenForm "Emp_Info_frm", acNormal
End Sub
Comment