BadKitty
Registered User.
- Local time
- Yesterday, 21:39
- Joined
- Jul 7, 2005
- Messages
- 55
i have a form for users to enter contractor information (when appying for a city permit). on that form, i have a button to open the permit form in add mode & a button to save & close. problem is...when you click the permit button, whatever info was just entered isn't saved yet. rather than having a seperate save button, i'd like to be able to save & open the permit form in 1 click. how do i add code to save the record to the open form button? here's the code to open the form...
Private Sub cmdAddPermit_Click()
On Error GoTo Err_cmdAddPermit_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmPermitOrders"
DoCmd.OpenForm stDocName, , , acFormAdd
Exit_cmdAddPermit_Click:
Exit Sub
Err_cmdAddPermit_Click:
MsgBox Err.Description
Resume Exit_cmdAddPermit_Click
End Sub
this should be simple, but i just can't seem to make it work
Private Sub cmdAddPermit_Click()
On Error GoTo Err_cmdAddPermit_Click
Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "frmPermitOrders"
DoCmd.OpenForm stDocName, , , acFormAdd
Exit_cmdAddPermit_Click:
Exit Sub
Err_cmdAddPermit_Click:
MsgBox Err.Description
Resume Exit_cmdAddPermit_Click
End Sub
this should be simple, but i just can't seem to make it work
