“3320 function is not available in expressions in table-level validation expression” is the error and it is occurring on the line –
.addnew – in the following context
strSQL = “SELECT * FROM tblRunner WHERE Race_ID = “”” & strRaceID & “”” AND Runner_Number = ” & intRunnerNumber
Set rstRunner = db.OpenRecordset(strSQL, dbOpenDynaset)
With rstRunner
strAction = “Test For EOF.”
If .EOF Then
strAction = “Add Records”
.AddNew
strAction = “Set Race ID”
I used the strAction vairable in the error message to determine the exact line causing the error.
The user’s Vista machine does not have Access installed, just the 2007 runtime. it does have C:Program FilesCommon FilesMicrosoft SharedDAOdao360.dll.
I have tested on one of my machines with the runtime and the exact same backend database using the same front end although this test PC does have Access 2002 installed. and it did not error.
There is no validation in the tables and neither field is unique. The application is written in 2002 then packaged using 2007.
Any ideas?