M
Mark S
I have a Switchboard with all unbound controls that I use to build SQL for
the underlying query for another data form. If I enter something into a
textbox and go straight to the button that opens the data form, the value
that I typed into the textbox is not seen. But if I tab off the textbox, it
works fine.
In the On Click for the button that starts the data form I added to the
beginning of the code a Me.Repaint and a SetFocus to another control. That
seems to work OK, but I don't know if that is the best way to do it.
Also, when the data form is called, I just hide the Switchboard (Visible =
false). Then when I close the data form I make the Switchboard visible
again. At that point I also want some of the list and text boxes to return
to their default value.
I have been unable to get these boxes to return to their default value, so I
have been just writing a value back in with code. With the list boxes I have
used Me!Listbox.Selected(0) = True. That will move the list boxes selection
to the first item but it doesn't actually change the value of the list box.
How do you get list boxes and text boxes to actually return the value that
is displayed? How do you get a control to return to its default value?
Would I be better off closing the Switchboard and re-opening it versus using
visible?
Thanks for any help.
the underlying query for another data form. If I enter something into a
textbox and go straight to the button that opens the data form, the value
that I typed into the textbox is not seen. But if I tab off the textbox, it
works fine.
In the On Click for the button that starts the data form I added to the
beginning of the code a Me.Repaint and a SetFocus to another control. That
seems to work OK, but I don't know if that is the best way to do it.
Also, when the data form is called, I just hide the Switchboard (Visible =
false). Then when I close the data form I make the Switchboard visible
again. At that point I also want some of the list and text boxes to return
to their default value.
I have been unable to get these boxes to return to their default value, so I
have been just writing a value back in with code. With the list boxes I have
used Me!Listbox.Selected(0) = True. That will move the list boxes selection
to the first item but it doesn't actually change the value of the list box.
How do you get list boxes and text boxes to actually return the value that
is displayed? How do you get a control to return to its default value?
Would I be better off closing the Switchboard and re-opening it versus using
visible?
Thanks for any help.