Function setNull(tbname As String)
Dim rs As New ADODB.Recordset
Dim i As Long, j As Long
rs.Open tbname, CurrentProject.Connection, adOpenKeyset, adLockOptimistic
For i = 1 To rs.RecordCount
For j = 1 To rs.Fields.Count - 1
rs.Fields(j).Value = Null
rs.Update
Next
rs.MoveNext
Next
rs.Close
Set rs = Nothing
End Function