I
Icy
Hello. I use a Unbound Combo box as a look up with the row source
"SELECT Visitor.VisitorID, [LastName] & ", " & [FirstName] & " " &
[MiddleInitial] AS Expr1 FROM Visitor ORDER BY [LastName] & ", " &
[FirstName] & " " & [MiddleInitial];" The record fields display information
when different visitor is picked. However, when I open the form, the lookup
combo always blank and record field always has information in it. I want to
set Combo box to a default value and have the record field display correspond
information. I have try to code the
Sub Form_Load ()
Combo0.SetFocus
Me.Combo0.defaultvalue = Combo0.Column (0,0)
Me.requery
However, only the Combo0 display the correct vistor name and the record
field still display other visitor information even after Requery.
Same happen when I set Combo0.Value = Text25.Value. Only Visitor name
appears on the combo box, the record field still don't change. Please help.
Thanks!
"SELECT Visitor.VisitorID, [LastName] & ", " & [FirstName] & " " &
[MiddleInitial] AS Expr1 FROM Visitor ORDER BY [LastName] & ", " &
[FirstName] & " " & [MiddleInitial];" The record fields display information
when different visitor is picked. However, when I open the form, the lookup
combo always blank and record field always has information in it. I want to
set Combo box to a default value and have the record field display correspond
information. I have try to code the
Sub Form_Load ()
Combo0.SetFocus
Me.Combo0.defaultvalue = Combo0.Column (0,0)
Me.requery
However, only the Combo0 display the correct vistor name and the record
field still display other visitor information even after Requery.
Same happen when I set Combo0.Value = Text25.Value. Only Visitor name
appears on the combo box, the record field still don't change. Please help.
Thanks!