Composed validation on unbound form?

geralf

Registered User.
Local time
Today, 20:47
Joined
Nov 15, 2002
Messages
212
Hi,

I wanted to use an unbound form to enter a time stamp. I have the Time and Date part split in two unbound controls. The form is a pop-up. I use the OpenArgs to get a previous and next time stamp info to the form. This works fine. My problem comes when I want to validate the entered time/date in the unbound controls. I add the time and date together to get a full date/time variable. I want to transfer the value of the variable to the form I opened the pop-up from. This I do by declaring the variable as a public one. Now, when I would like to test if the entered timestamp, is in between the two timestamps passed to the pop-up. If it's outside one of the two passed arguments, I want to cancel the closing of the pop-up and give the user a message to edit the time entered in the controls on the pop-up. I can't use the Forms BeforeUpdate to do this, because the event don't fire when there's only unbound controls in a form.The BeforeUpdate of the controls fires, but this won't work since the time/date us split.

Does anyone know how this can be done?

Thanks in advance

Gerhard
 

Users who are viewing this thread

Back
Top Bottom