C
Chrisso
Hi all
I dont understand why the code below does not work.
I have a form (Form1) with a text box (Text0). In my code I want to
open the form and display the text "Hello" in Text0.
However when I run this code Form1 comes up with Text0 blank. What am
I missing? What dont I understand? AS you can see I have tried a few
different ways of forcing this to happen with no available.
Form_Form1.Text0.DefaultValue = "Hello"
DoCmd.OpenForm Form_Form1.Name
Form_Form1.Text0.DefaultValue = "Hello"
Form_Form1.Repaint
DoEvents
I want to populate this form with data for a query to use. I want to
open the form, populate it with data into text boxes, run queries that
use this information then close the form.
Thanks for any help as I am stuck!
Chrisso
I dont understand why the code below does not work.
I have a form (Form1) with a text box (Text0). In my code I want to
open the form and display the text "Hello" in Text0.
However when I run this code Form1 comes up with Text0 blank. What am
I missing? What dont I understand? AS you can see I have tried a few
different ways of forcing this to happen with no available.
Form_Form1.Text0.DefaultValue = "Hello"
DoCmd.OpenForm Form_Form1.Name
Form_Form1.Text0.DefaultValue = "Hello"
Form_Form1.Repaint
DoEvents
I want to populate this form with data for a query to use. I want to
open the form, populate it with data into text boxes, run queries that
use this information then close the form.
Thanks for any help as I am stuck!
Chrisso