L
Leslie Isaacs
Hello All
I have a form with 6 unbound text boxes that show various calculated values
(using DLookups etc.). The only problem is that the values are not
displaying when the form is first opened: the only way I can get them to
display is either to click on them, or to tab through them.
I have tried using the following commands in the form's OnOpen event:
[text1].SetFocus
DoCmd.GoToControl ("[text1]")
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
.... but none of these work! The SetFocus and DoCmd.GoToControl commands both
do work on the final textbox specified - i.e. they cause the value in that
final textbox to be displayed: it's as if the commands haven't had time to
'act on' the previous texboxes though, as their values were not displayed. I
did try seperating the commands with a Beep command to see if that created
enough delay for the commands to 'act' on each textbox ... but it didn't!!
What can I do?
Hope someone can help.
Many thanks
Les
I have a form with 6 unbound text boxes that show various calculated values
(using DLookups etc.). The only problem is that the values are not
displaying when the form is first opened: the only way I can get them to
display is either to click on them, or to tab through them.
I have tried using the following commands in the form's OnOpen event:
[text1].SetFocus
DoCmd.GoToControl ("[text1]")
DoCmd.DoMenuItem acFormBar, acRecordsMenu, 5, , acMenuVer70
.... but none of these work! The SetFocus and DoCmd.GoToControl commands both
do work on the final textbox specified - i.e. they cause the value in that
final textbox to be displayed: it's as if the commands haven't had time to
'act on' the previous texboxes though, as their values were not displayed. I
did try seperating the commands with a Beep command to see if that created
enough delay for the commands to 'act' on each textbox ... but it didn't!!
What can I do?
Hope someone can help.
Many thanks
Les