antonyx
Arsenal Supporter
- Local time
- Today, 17:54
- Joined
- Jan 7, 2005
- Messages
- 556
trying to turn this..
into this and its not correct.. how shall i lay it out..
Code:
Private Sub idfound_AfterUpdate()
Dim newid
If KeyCode = 9 And IsNull(idfound) Then
Me.cboname.SetFocus
Else
newid = idfound.Value
If CurrentProject.AllForms("job_cash_single").IsLoaded Then
Forms!job_cash_single!qpax.Value = newid
DoCmd.Close acForm, "job_add_passenger"
Else
Forms!job_card_single!qpax.Value = newid
DoCmd.Close acForm, "job_add_passenger"
End If
End If
End Sub
into this and its not correct.. how shall i lay it out..
Code:
Private Sub idfound_AfterUpdate()
Dim newid
If KeyCode = 9 And IsNull(idfound) Then
Me.cboname.SetFocus
Else
newid = idfound.Value
If CurrentProject.AllForms("job_cash_single").IsLoaded Then
Forms!job_cash_single!qpax.Value = newid
DoCmd.Close acForm, "job_add_passenger"
Else[b]If[/b]
Forms!job_card_single!qpax.Value = newid
DoCmd.Close acForm, "job_add_passenger"
[b]ElseIf
Forms!job_card_daily!qpax.Value = newid
DoCmd.Close acForm, "job_add_passenger"[/b]
End If
End Sub