11/23/2024 2:52:27 AM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss usage & tips for SalesLogix controls and other 3rd party ActiveX controls. View the code of conduct for posting guidelines.
|
|
|
|
Question on WhenEnter Event
Posted: 01 Mar 07 9:12 AM
|
fiogf49gjkf0d I have a lookup control in which when the person enters the control I am doing a form check for all the required data has been collected and running them back to the controls that they might have missed.
This can't be done on the validate event since I don't want it to happen everytime the account changes.. just when they are ready to pass the form along...
Here is the rub...
in my check I do: If Len(pklType.Text) < 1 Then MsgBox "You need to enter the client type",,"Error with type" pklType.SetFocus lueSalesApprove.Text = "" cbReady.Checked = False Exit Sub End If
Issue is that I get an error saying..
Error Calling method lueSalesApproveEnterControl Error in dispatch.invoke():Wrong number of arguments or invalid property assignment
Anybody got a hint on how to resolve this.. |
|
|
|
Re: Question on WhenEnter Event
Posted: 04 Mar 07 8:46 AM
|
fiogf49gjkf0d A Form's validate event only "fires" when a BOUND value has been changed.
There are really two levels of "validation": A - Checking to see if a value is in range or of proper format at the control event level B - Form level validation.
I'd suggest you re-think your approach go form level. All you have to do is set focus to the control and "return false" on the validate.
-- rjl |
|
|
|
Re: Question on WhenEnter Event
Posted: 05 Mar 07 11:39 AM
|
fiogf49gjkf0d Thanks RJ, Turned out to be that the setfocus, and Exit sub wasn't allowing the When enter to complete. Slight modification and all works fine..
Thanks for the input |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|