antonyx
Arsenal Supporter
- Local time
- Today, 15:00
- Joined
- Jan 7, 2005
- Messages
- 556
i have some code below.. i have wrote the part in bold that needs to be coded.. its just a small part..
Code:
If me.txtfkAccountTypeID.Value = 1 Then
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Close
End If
If me.txtfkAccountTypeID.Value = 2 And me.txtfkPayByID.Value = 0 Then
Dim stLinkCriteria As String
DoCmd.RunCommand acCmdSaveRecord
stLinkCriteria = "[jobref]=" & "'" & Me![jobref] & "'"
DoCmd.Close
DoCmd.OpenForm "frmAddBookingAcct", , , stLinkCriteria
End If
If me.txtfkAccountTypeID.Value = 2 And me.txtfkPayByID.Value = 2 Then
[b]Need a message box here.. Do you wish to add Credit Card details Now?, it has a yes and no option[/b]
[b]If option is NO then[/b]
DoCmd.RunCommand acCmdSaveRecord
DoCmd.Close
[b]If option is YES Then[/b]
Dim stLinkCriteria As String
DoCmd.RunCommand acCmdSaveRecord
stLinkCriteria = "[jobref]=" & "'" & Me![jobref] & "'"
DoCmd.Close
DoCmd.OpenForm "frmAddBookingCard", , , stLinkCriteria
End If