K
Ktowner
I posted in several weeks ago with a code question. I would like Access to
prompt me to enter a new record or close my access form when a submit butten
is hit. I got the following code from a reply and tied it to my submit
button on my form.
Dim strMsg As String
Dim vbResponse
strMsg = "Would You Like To Enter Another Record?"
vbResponse = MsgBox(strMsg, vbYesNo + vbDefaultButton2 + vbQuestion, _
"Create New Record?")
If vbResponse = vbYes Then
DoCmd.GoToRecord , , acNewRec
Else
DoCmd.Close acForm, "Area Shop Workload New 350"
I thought it was working at first but later found that although it go to a
new record, it does not go to the 0 tab stop. I have to click on the first
field. Also should I see the message “Create New Record?†at some point?
Is this code working properly, should I have to point and click the field?
Thanks
Don K.
prompt me to enter a new record or close my access form when a submit butten
is hit. I got the following code from a reply and tied it to my submit
button on my form.
Dim strMsg As String
Dim vbResponse
strMsg = "Would You Like To Enter Another Record?"
vbResponse = MsgBox(strMsg, vbYesNo + vbDefaultButton2 + vbQuestion, _
"Create New Record?")
If vbResponse = vbYes Then
DoCmd.GoToRecord , , acNewRec
Else
DoCmd.Close acForm, "Area Shop Workload New 350"
I thought it was working at first but later found that although it go to a
new record, it does not go to the 0 tab stop. I have to click on the first
field. Also should I see the message “Create New Record?†at some point?
Is this code working properly, should I have to point and click the field?
Thanks
Don K.