UtterAccess.com
X   Site Message
(Message will auto close in 2 seconds)

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> append query    
 
   
adamsmith_hrs
post Oct 25 2005, 05:18 AM
Post #1

UtterAccess Addict
Posts: 135



Hello (again (IMG:http://www.utteraccess.com/forum/style_emoticons/default/tongue.gif) )

firstly thanks to all for the help am getting on here.

now to the question....

i have the following

Private Sub Toggle66_Click()

On Error GoTo Err_Toggle66_Click

Dim stDocName As String
Dim stLinkCriteria As String
stDocName = "SIR"
DoCmd.OpenForm stDocName, , , stLinkCriteria
DoCmd.OpenQuery "SIR-Append"



Exit_Toggle66_Click:
Exit Sub

Err_Toggle66_Click:
MsgBox Err.description
Resume Exit_Toggle66_Click

End Sub

but i dont want the form to open if the append query has an error, any solutions to this?

ADAM
Go to the top of the page
 
+
gideon
post Oct 25 2005, 05:23 AM
Post #2

UtterAccess Veteran
Posts: 362
From: Brazil



Dont open the form before the query.

Be carefull of the "stLinkCriteria" I dont see you passing anything to it or clearing it.
Go to the top of the page
 
+
adamsmith_hrs
post Oct 25 2005, 05:29 AM
Post #3

UtterAccess Addict
Posts: 135



thanks that worked and i removed the "stLinkCriteria"

is there anyway to get access from displaying the default warning and options and replacing it with just a simple comment like

"cannont perform operation"

??

thanks

ADAM
Go to the top of the page
 
+

Thank you for your support! Reply to this topicStart new topic

Jump To Forum:
 



RSS Go to Top  ·  Lo-Fi Version Time is now: 19th June 2013 - 01:56 AM