Full Version: Two Expressions in One Event
UtterAccess Discussion Forums > Microsoft® Access > Access Forms
keeblerjp123
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
Oneed to add another expression:
=fSetAccessWindow (0)
To be there as well, Anysuggestions
quest4
I have two and three different procedures in the same event. Just add it either before or after. hth.
keeblerjp123
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.
quest4
Try:
Me!ObjectName=fSetAccessWindow (0)
Call cmdOK_Click
hth
keeblerjp123
What do i use if i want to call on the form.
e!ObjectName=fSetAccessWindow (0)
this is for a form, it wants to call attention to a field.
Thanks JP
quest4
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.