F
Fredrated
I am having a problem because a text box doesn't recognize data has been
typed into it until the cursor has been moved, but not always even then!
Long winded description follows.
We manage online training, and have started charging to reopen a class for
students that let their enrollment lapse, because so many of them do that.
The main management form has a payment subform to accept payment datails,
and a payment isn't considered valid unless all details needed for a specific
payment type are entered. For example, if the payment type is credit card,
the payment information is incomplete if there is no card expiration date
entered.
The 'reactivate enrollment' form is a non-modal pop up. The admin enters
details like how long to reactivate the enrollment for, then clicks
'reactivate'. If a valid payment has not been entered into the payment
subform, they get a message to that effect. So they stop the process, enter
a payment, then click 'reactivate' again.
The 'reactivate' popup queries the payment subform (it has unbound controls)
and asks if a valid payment has been entered. Here is where the problem
occurs. The user has entered the payer in the last payment subform text box.
The cursor is still blinking in this text box when the user clicks
'reactivate' on the popup again, and at this point, when the payment subform
is queried to see if it has valid payment information, it thinks the 'payer'
text box is still empty!
So (finally) the question is: is there some way to make the subform
recognize that all text boxes have data, without making the user click
somewhere else in the subform, something they wouldn't naturally do?
I tried preceeding the validity check with Me.txtPayer.Requery, but that
resulted in the error message 'You must save the current field before you run
the requery action', but there seems to be no Me.txtPayer.Save method.
Because the payment subform has unbound controls I can't docmd the command
that forces a record to be saved.
Any ideas? Thanks in advance for any help.
Fred
typed into it until the cursor has been moved, but not always even then!
Long winded description follows.
We manage online training, and have started charging to reopen a class for
students that let their enrollment lapse, because so many of them do that.
The main management form has a payment subform to accept payment datails,
and a payment isn't considered valid unless all details needed for a specific
payment type are entered. For example, if the payment type is credit card,
the payment information is incomplete if there is no card expiration date
entered.
The 'reactivate enrollment' form is a non-modal pop up. The admin enters
details like how long to reactivate the enrollment for, then clicks
'reactivate'. If a valid payment has not been entered into the payment
subform, they get a message to that effect. So they stop the process, enter
a payment, then click 'reactivate' again.
The 'reactivate' popup queries the payment subform (it has unbound controls)
and asks if a valid payment has been entered. Here is where the problem
occurs. The user has entered the payer in the last payment subform text box.
The cursor is still blinking in this text box when the user clicks
'reactivate' on the popup again, and at this point, when the payment subform
is queried to see if it has valid payment information, it thinks the 'payer'
text box is still empty!
So (finally) the question is: is there some way to make the subform
recognize that all text boxes have data, without making the user click
somewhere else in the subform, something they wouldn't naturally do?
I tried preceeding the validity check with Me.txtPayer.Requery, but that
resulted in the error message 'You must save the current field before you run
the requery action', but there seems to be no Me.txtPayer.Save method.
Because the payment subform has unbound controls I can't docmd the command
that forces a record to be saved.
Any ideas? Thanks in advance for any help.
Fred