- //Contact
- if (input.cboContact == "New Contact")
- {
- varContactData = tblContact [intEventID == input.intEventID];
- varContactName = varContactData.fmlaContact;
- varContactDetail = varContactData.cboAgency.strAddress + "\n" + varContactData.cboAgency.strSuburb;
- }
- else if (input.cboContact == "-Select-")
- {
- varContactName = "";
- varContactDetail = "";
- }
- else
- {
- varContactName = input.cboContact;
- varContactDetail = input.strContactDetail;
- }
The problem is the addition of the cboAgency field is that when the user clicks the cmdSave button it causes my code to run incorrectly.
This code was based on some WORKING code a couple lines above that reads:
- if (input.cboVenue == "New Venue")
- {
- varVenueData = tblVenue [intEventID == input.intEventID];
- varVenueName = varVenueData.strVenueName;
- varVenueDetail = varVenueData.strVenueName + "\n" + varVenueData.strAddress + "\n" + varVenueData.strSuburb + "\n" + varVenueData.strCity + "\n" + varVenueData.strState + "\n" + varVenueData.strCountry + "\n" + varVenueData.strPostalCode;
- }
- else if (input.cboVenue == "-Select-")
- {
- varVenueName = "";
- varVenueDetail = "";
- }
- else
- {
- varVenueName = input.cboVenue;
- varVenueDetail = input.strVenueDetail;
- }
Can you please tell me why the cboAgency keeps appearing?
I have already allowed access to Zoho Support.
Thanks
Leo Saumure