R
RIP
I am getting a compile error... Can someone pls tell me what I am doing
wrong...
Private Sub Command5_Click()
Dim db As Database <<<----debugger highlights this yellow
Dim rctMakeAdd As Recordset
'*** Create a pointer to the database and a pointer to the table ***
Set db = CurrentDb()
Set rctMakeAdd = db.OpenRecordset("tblMake", dbOpenTable)
' ****Validate the Date field***
If IsNull(make) Or Len(make) = 0 Then
MsgBox "Please Enter a Make"
make.SetFocus
rctMakeAdd.Close
db.Close
Exit Sub
End If
wrong...
Private Sub Command5_Click()
Dim db As Database <<<----debugger highlights this yellow
Dim rctMakeAdd As Recordset
'*** Create a pointer to the database and a pointer to the table ***
Set db = CurrentDb()
Set rctMakeAdd = db.OpenRecordset("tblMake", dbOpenTable)
' ****Validate the Date field***
If IsNull(make) Or Len(make) = 0 Then
MsgBox "Please Enter a Make"
make.SetFocus
rctMakeAdd.Close
db.Close
Exit Sub
End If