Guest_imported
New member
- Jan 1, 1970
- 0
Hello!
Is there any way to store a number with decimal points in access? eg: 6.59? And following is the code behind the add button of a form. It works but the data in the form remains even after it is added. i.e the form won't reappear empty. Can anyone help me regarding these?
Private Sub Add_Click()
On Error GoTo Err_Add_Click
Dim i
DoCmd.GoToRecord , , acNewRec
Me!Text23 = ""
Me!Text45 = ""
Me!City = ""
Exit_Add_Click:
Exit Sub
Err_Add_Click:
If Err.Number = 3022 Then
i = MsgBox(" The Student ID Has To Be Unique", vbOKOnly, "Student Database"
Else
MsgBox Err.Description
Resume Exit_Add_Click
End If
End Sub
Is there any way to store a number with decimal points in access? eg: 6.59? And following is the code behind the add button of a form. It works but the data in the form remains even after it is added. i.e the form won't reappear empty. Can anyone help me regarding these?
Private Sub Add_Click()
On Error GoTo Err_Add_Click
Dim i
DoCmd.GoToRecord , , acNewRec
Me!Text23 = ""
Me!Text45 = ""
Me!City = ""
Exit_Add_Click:
Exit Sub
Err_Add_Click:
If Err.Number = 3022 Then
i = MsgBox(" The Student ID Has To Be Unique", vbOKOnly, "Student Database"
Else
MsgBox Err.Description
Resume Exit_Add_Click
End If
End Sub