I had to convert a number of databases from access97 to access 2000 and I have a problem with the following code running from a form when a buttton is clicked.
First I get an Error in Alpha1.FormBU Overflow then I get an Alpha1.Append 1/1 Index or primary key cannot contain Null Value.
This code was written by someone else and worked before converting. I can't figure out what the Alpha1.FormBU and Alpha1.Append?
Also are the DoCmd statement going to work in the Access 2000 version.
Thanks
Private Sub Append1_Click()
On Error GoTo errSect
Dim stAction As String
Dim lnerr As Double
Dim dlfctn As Double
stAction = "Alpha1.Append1"
lnerr = 1
dlfctn = False
UofM = UofM
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
exitSect:
Exit Sub
errSect:
MsgBox Err.Description, , "ERROR: " & stAction & "/" & lnerr
Resume exitSect
End Sub
First I get an Error in Alpha1.FormBU Overflow then I get an Alpha1.Append 1/1 Index or primary key cannot contain Null Value.
This code was written by someone else and worked before converting. I can't figure out what the Alpha1.FormBU and Alpha1.Append?
Also are the DoCmd statement going to work in the Access 2000 version.
Thanks
Private Sub Append1_Click()
On Error GoTo errSect
Dim stAction As String
Dim lnerr As Double
Dim dlfctn As Double
stAction = "Alpha1.Append1"
lnerr = 1
dlfctn = False
UofM = UofM
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
exitSect:
Exit Sub
errSect:
MsgBox Err.Description, , "ERROR: " & stAction & "/" & lnerr
Resume exitSect
End Sub