this short snipet is meant to copy the values of all fields in one record to the record currently being displayed in form frmSpec; it's not working... and the error is the allusive #2465 (both the form and the recordset have the same source table: tbeFixtureTypeDetails; but both would never be the same record)
any thoughts, comments or suggestions will be greatly appreciated
Private Sub cmdNextNumeric_Click()
Set Db = CurrentDb()
Set rst = Db.OpenRecordset("SELECT * " & _
"FROM tbeFixtureTypeDetails " & _
"WHERE tbeFixtureTypeDetails.type = '" & Me.[lblInitialAlpha].Caption & "';")
For Each fld In rst.Fields
strFieldName = fld.Name
' ****** it's this next line that is giving me problems
Forms![frmSpec].Fields(strFieldName) = Nz(fld.Value)
' ******
Next fld
Forms![frmSpec].Update
End Sub
many thanks in advance,
mark