Ask a Question related to Microsoft Access, Design and Development.
-
Diana Minks #1
Need a Save button that closes the form
I've created a Save button that saves the data entered but
I also want it to close the form. Here's what I have with
my On Click event. This works but doesn't close the form.
HELP!!!!
Private Sub Save_Record_Click()
On Error GoTo Err_Save_Record_Click
DoCmd.DoMenuItem acFormBar, acRecordsMenu,
acSaveRecord, , acMenuVer70
Exit_Save_Record_Click:
Exit Sub
Err_Save_Record_Click:
MsgBox Err.Description
Resume Exit_Save_Record_Click
End Sub
Diana Minks Guest
-
Save Button
How do you create a 'SAVE' button instead of a 'SAVE AS' button? Im using Acrobat Pro 9. -
Batch Crop Action - auto save files without having to hit 'save' button
Hi, A while ago I spent a long time trying to figure out an action that would automatically crop my photos to a 4x3 aspect ratio to use in video.... -
Creating button to Save Record and Close Form
Use the VB Editor window to add a line as follows: Docmd.Close acform, Me.Name The line should be added immediately after the save command... -
Save my (ass)ets! Trying to Link a button to a frame in another scene
I'm using Flash 4 and I can't get my button to link to the main scene in my flash program. I created a movie button within a movie button and I'm... -
JavaScript Access to Button in form tags (webcontrol or html button)
Hello, I have a button called LoadBtn, which exists in <form name="Form1" runat=server></form> tags. I then have javascript loaded outside of... -
Bruce M. Thompson #2
Re: Need a Save button that closes the form
You need to add a line after the "save" command to close the form:
DoCmd.Close acForm, Me.Name
--
Bruce M. Thompson, Microsoft Access MVP
[email]bthmpson@mvps.org[/email] (See the Access FAQ at [url]http://www.mvps.org/access[/url])within the newsgroups so that all might benefit.<<>>No Email, Please. Keep all communications
"Diana Minks" <diana.minks@alltel.com> wrote in message
news:027d01c34703$081fed90$a101280a@phx.gbl...> I've created a Save button that saves the data entered but
> I also want it to close the form. Here's what I have with
> my On Click event. This works but doesn't close the form.
>
> HELP!!!!
>
> Private Sub Save_Record_Click()
>
> On Error GoTo Err_Save_Record_Click
>
> DoCmd.DoMenuItem acFormBar, acRecordsMenu,
> acSaveRecord, , acMenuVer70
>
> Exit_Save_Record_Click:
> Exit Sub
>
> Err_Save_Record_Click:
> MsgBox Err.Description
> Resume Exit_Save_Record_Click
>
> End Sub
>
Bruce M. Thompson Guest



Reply With Quote

