K
KRosier
Hi folks! Using Access2000
I have the following bit of code in the DblClick event of the combo box
cmb_team_no. It opens the proper form but always goes to the first
record, not to a new (blank) record. Can anyone point out my error?
Thanks!
Kathy
Private Sub cmb_team_no_DblClick(Cancel As Integer)
On Error GoTo Err_cmb_team_no_DblClick
Dim lngcmb_team_no As Long
If IsNull(Me![cmb_team_no]) Then
Me![cmb_team_no].Text = ""
Else
lngcmb_team_no = Me![cmb_team_no]
Me![cmb_team_no] = Null
End If
DoCmd.OpenForm "frm_team", , , , , acDialog, "GotoNew"
Me![cmb_team_no].Requery
If lngcmb_team_no <> 0 Then Me![cmb_team_no] = lngcmb_team_no
Exit_cmb_team_no_DblClick:
Exit Sub
Err_cmb_team_no_DblClick:
MsgBox Err.Description
Resume Exit_cmb_team_no_DblClick
End Sub
I have the following bit of code in the DblClick event of the combo box
cmb_team_no. It opens the proper form but always goes to the first
record, not to a new (blank) record. Can anyone point out my error?
Thanks!
Kathy
Private Sub cmb_team_no_DblClick(Cancel As Integer)
On Error GoTo Err_cmb_team_no_DblClick
Dim lngcmb_team_no As Long
If IsNull(Me![cmb_team_no]) Then
Me![cmb_team_no].Text = ""
Else
lngcmb_team_no = Me![cmb_team_no]
Me![cmb_team_no] = Null
End If
DoCmd.OpenForm "frm_team", , , , , acDialog, "GotoNew"
Me![cmb_team_no].Requery
If lngcmb_team_no <> 0 Then Me![cmb_team_no] = lngcmb_team_no
Exit_cmb_team_no_DblClick:
Exit Sub
Err_cmb_team_no_DblClick:
MsgBox Err.Description
Resume Exit_cmb_team_no_DblClick
End Sub