L
Linda
I have the following routine in my OnCurrent Event of my
form. The purpose of this routine is to carry over the
data that was previously entered into the fields
txtHotel and cbocontrol_offcicer to a new record.
This work fine for my textbox named txthotel, for my
combo box named cbocontrol_officer it does NOT work.
I really don't see why it does not work for a combo-box.
Dim vHotel As String
Dim vContOfficer As Variant
If Me.NewRecord Then
Me![txtHotel] = vHotel
Me![cbocontrol_officer] = vContOfficer
End If
vHotel = Me![txtHotel]
vContOfficer = Me![cbocontrol_officer]
TIA.
form. The purpose of this routine is to carry over the
data that was previously entered into the fields
txtHotel and cbocontrol_offcicer to a new record.
This work fine for my textbox named txthotel, for my
combo box named cbocontrol_officer it does NOT work.
I really don't see why it does not work for a combo-box.
Dim vHotel As String
Dim vContOfficer As Variant
If Me.NewRecord Then
Me![txtHotel] = vHotel
Me![cbocontrol_officer] = vContOfficer
End If
vHotel = Me![txtHotel]
vContOfficer = Me![cbocontrol_officer]
TIA.