megatronixs
Registered User.
- Local time
- Today, 03:08
- Joined
- Aug 17, 2012
- Messages
- 719
Hi all,
I'm trying to capture a call outcome to our database.
When the user calls the client, she/he needs to click on a button to pop up a form where she/he can select one of the 3 outcome of the phone call (like made contact, made no contact, call postponed).
once the user selects an option from the form, this should put the value selected on the table and then close.
I have so far the below code:
so far I can only have the form pop up, but no clue how to capture the value and add it to the table in the field "phone_contact_outcome"
the combobox in the form "frm_phone_contact_outcome" is called "Combo0" (I will still rename the combobox to something more usefull)
Greetings.
I'm trying to capture a call outcome to our database.
When the user calls the client, she/he needs to click on a button to pop up a form where she/he can select one of the 3 outcome of the phone call (like made contact, made no contact, call postponed).
once the user selects an option from the form, this should put the value selected on the table and then close.
I have so far the below code:
Code:
Private Sub btn_step1_contact_Click()
Dim stDocName As String
Dim Combo0 As String
stDocName = "frm_phone_contact_outcome"
DoCmd.OpenForm stDocName, , , ""
DoCmd.GoToControl ("frm_step1_contact")
DoCmd.GoToRecord , , acNewRec
Me!frm_step1_contact![date_time_contact] = Now
Me!frm_step1_contact![analyst_contact] = GetUserFullName
End Sub
so far I can only have the form pop up, but no clue how to capture the value and add it to the table in the field "phone_contact_outcome"
the combobox in the form "frm_phone_contact_outcome" is called "Combo0" (I will still rename the combobox to something more usefull)
Greetings.