G
Gina Whipp
Hello All,
Code example below... What I want is turn Prospect into Customer (working);
requery lstClientID and cboClientID (working); then select the first item in
lstClientID (listbox) so the subforms shows information (NOT working) - See
line with asterisks.
Thanks Guys AND Gals!
Gina
Dim Msg, Style, Title, Response, MyString
Msg = "This Sales Lead is now a Customer?"
Style = vbYesNo + vbQuestion + vbDefaultButton2
Title = "Sales Lead"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then
MyString = "Yes"
Me.txtCustomerID = DMax("cpCustomerID", "qryClientNames") +
1
Me.chkChecked = 0
Forms![frmProspectProfile]![lstClientID].SetFocus
Forms![frmProspectProfile]![lstClientID].Requery
Forms![frmProspectProfile]![lstClientID] ***This is where I
need this list box to be [ItemData](0)***
Forms![frmProspectProfile]![cboClientID].Requery
Else
MyString = "No"
DoCmd.CancelEvent
End If
Code example below... What I want is turn Prospect into Customer (working);
requery lstClientID and cboClientID (working); then select the first item in
lstClientID (listbox) so the subforms shows information (NOT working) - See
line with asterisks.
Thanks Guys AND Gals!
Gina
Dim Msg, Style, Title, Response, MyString
Msg = "This Sales Lead is now a Customer?"
Style = vbYesNo + vbQuestion + vbDefaultButton2
Title = "Sales Lead"
Response = MsgBox(Msg, Style, Title)
If Response = vbYes Then
MyString = "Yes"
Me.txtCustomerID = DMax("cpCustomerID", "qryClientNames") +
1
Me.chkChecked = 0
Forms![frmProspectProfile]![lstClientID].SetFocus
Forms![frmProspectProfile]![lstClientID].Requery
Forms![frmProspectProfile]![lstClientID] ***This is where I
need this list box to be [ItemData](0)***
Forms![frmProspectProfile]![cboClientID].Requery
Else
MyString = "No"
DoCmd.CancelEvent
End If