webvine
Technical User
- Oct 21, 2002
- 20
Hi,
I have a command button that when I click it, it opens a form that I have assigned it to open, but instead of it displaying the records I have all ready inputted, I just want it to open up to a blank record. How do I do that? At the moment this is the code that I have attached to the command button
Private Sub Workorders_Click()
On Error GoTo Err_Workorders_Click
If IsNull([CustomerID]) Then
MsgBox "Enter Law Firm name before entering billing information."
Else
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.OpenForm "Billing"
End If
Exit_Workorders_Click:
Exit Sub
Err_Workorders_Click:
MsgBox Err.Description
Resume Exit_Workorders_Click
End Sub
Thanks in advance for any suggestions.
I have a command button that when I click it, it opens a form that I have assigned it to open, but instead of it displaying the records I have all ready inputted, I just want it to open up to a blank record. How do I do that? At the moment this is the code that I have attached to the command button
Private Sub Workorders_Click()
On Error GoTo Err_Workorders_Click
If IsNull([CustomerID]) Then
MsgBox "Enter Law Firm name before entering billing information."
Else
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord, , acMenuVer70
DoCmd.OpenForm "Billing"
End If
Exit_Workorders_Click:
Exit Sub
Err_Workorders_Click:
MsgBox Err.Description
Resume Exit_Workorders_Click
End Sub
Thanks in advance for any suggestions.