Option groups

mousemat

Completely Self Taught
Local time
Today, 15:41
Joined
Nov 25, 2002
Messages
233
Help

I have an option group on a form that populates a hidden text box, this works fine.

Everytime i press save & new record, the option group is still displaying the entry for the last record.

How can I stop this from happeneing and have the option group be blank each time?

Mousemat
 
The reason this happens is the option group is not "bound" to anything so it keeps the same values from record to record. If you want to option group to be reset when you move from record to record, place some code in the On Current event of your form.
 
Hi DCX

Thanks for your response. Your right, the option group is not bound.

Have searched to forum for similar problems but found none, any idea of the coding required? MS Help files wasn't helpful! (Surprise)

Mousemat
 
Set the default value of the frame to Null. Then when you go onto a new record it will be set to Null.

OR

In the form_current put something like
Me.Frame2.Value = Null

That should get you started.

Steve
 
Steve

Me.Frame2.Value = Null

Worked a treat.

As usual in these things, the simple answers are staring us in the face. Hadn't even thought about that.

Thanks for your help
 

Users who are viewing this thread

Back
Top Bottom