I have designed my form and it display’s on my screen just fine but I can not get the focus set to allow me to key in data in to the first field. The following is everything I have tried. I know I am missing something simple but just can’t think of what I’m missing.
fmTestLayout.Visible = True
fmTestLayout.ClearDisplay
fmTestLayout.stCurOrder = ""
fmTestLayout.txOrder.Text = ""
fmTestLayout.bAllowScan = True
fmTestLayout.bCanProcess = True
fmTestLayout.txOrder.SetFocus
fmTestLayout.txOrder.Enabled = True
fmTestLayout.txOrder.Locked = False
fmTestLayout.txOrder.DataField = stCurOrder
fmTestLayout.txOrder.TabStop = True
fmTestLayout.Visible = True
fmTestLayout.ClearDisplay
fmTestLayout.stCurOrder = ""
fmTestLayout.txOrder.Text = ""
fmTestLayout.bAllowScan = True
fmTestLayout.bCanProcess = True
fmTestLayout.txOrder.SetFocus
fmTestLayout.txOrder.Enabled = True
fmTestLayout.txOrder.Locked = False
fmTestLayout.txOrder.DataField = stCurOrder
fmTestLayout.txOrder.TabStop = True