Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

removing prompt msgs

Status
Not open for further replies.
Sep 16, 2004
21
0
0
GB
when i save information from a form to a table.. 2 prompt msgs occurs..
Is the anyway i can just save the data from the form without the prompts

thanks
 
not too sure what you are saying her but I'll assume you are getting a warning that you 'Are about to append 2 records'. If so then try this:-

Code:
docmd.setwarnings false
docmd.runsql << your SQL string here >>
docmd.setwarnings true

solo7 [thumbsup2]
 
i actually have a button on the form which runs a macro
the code is

Private Sub Command29_Click()
On Error GoTo Err_Command29_Click

Dim stDocName As String

stDocName = "save transfer"
DoCmd.OpenQuery stDocName, acNormal, acEdit


Exit_Command29_Click:
Exit Sub

Err_Command29_Click:
MsgBox Err.DESCRIPTION
Resume Exit_Command29_Click

End Sub
 
So you want the code to run without propmting the msg huh? Paste this code:
Private Sub Command29_Click()


Dim stDocName As String

stDocName = "save transfer"
DoCmd.OpenQuery stDocName, acNormal, acEdit


Exit_Command29_Click:
Exit Sub




End Sub
 
How are ya donnie051280 . . . . .

To permanently remove: Click MenuBar-Tools-Options-Edit/Find Tab. In the [blue]Confirm[/blue] section remove check from [blue]Record changes[/blue].

Calvin.gif
See Ya! . . . . . .
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top