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

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Two Expressions in One Event    
 
   
keeblerjp123
post Nov 22 2004, 09:06 AM
Post #1

UtterAccess Addict
Posts: 118
From: Dallas, Texas



Ok, I already have an event procedure in my On Open Event, That states this

Private Sub txtPassword_AfterUpdate()
On Error Resume Next

Call cmdOK_Click

End Sub

I need to add another expression:

=fSetAccessWindow (0)

To be there as well, Anysuggestions
Go to the top of the page
 
+
quest4
post Nov 22 2004, 09:38 AM
Post #2

UtterAccess Ruler
Posts: 1,884
From: Cleveland, OH



I have two and three different procedures in the same event. Just add it either before or after. hth.
Go to the top of the page
 
+
keeblerjp123
post Nov 22 2004, 10:20 AM
Post #3

UtterAccess Addict
Posts: 118
From: Dallas, Texas



Ok, How do you do the difference detween, Code and Expressions.

Private Sub txtPassword_AfterUpdate()
On Error Resume Next
=fSetAccessWindow (0)

Call cmdOK_Click

End Sub

Because thats not going to work.
Go to the top of the page
 
+
quest4
post Nov 22 2004, 11:01 AM
Post #4

UtterAccess Ruler
Posts: 1,884
From: Cleveland, OH



Try:
Me!ObjectName=fSetAccessWindow (0)
Call cmdOK_Click
hth
Go to the top of the page
 
+
keeblerjp123
post Nov 22 2004, 11:18 AM
Post #5

UtterAccess Addict
Posts: 118
From: Dallas, Texas



What do i use if i want to call on the form.

Me!ObjectName=fSetAccessWindow (0)

this is for a form, it wants to call attention to a field.

Thanks JP
Go to the top of the page
 
+
quest4
post Nov 22 2004, 11:38 AM
Post #6

UtterAccess Ruler
Posts: 1,884
From: Cleveland, OH



Not trying to figure out what you are doing. Do you need to have your Call procedure to run first or second? The more I look at what I have been given, the more I think it should be first, but I don't know what all is being done. It almost sounds like you want to runthe call stuff and then open a form ands set it to something, is that what you are trying to do? hth.
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: 20th June 2013 - 02:37 AM