Linking Database to Form - InfoPath Dev
in

InfoPath Dev

Linking Database to Form

Last post 11-16-2006 09:47 AM by Shiva. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 11-16-2006 02:22 AM

    Linking Database to Form

    Hello there,

    I have a database with postcodes for street names all over the country and I am hoping to link this to my input form.

    On my input form there is a Postcode field to be keyed in.

    I am looking to send this form to different email addresses depending on what the value of the postcode is.
    Can this be done?
  • 11-16-2006 09:47 AM In reply to

    • Shiva
    • Top 25 Contributor
    • Joined on 04-15-2005
    • India
    • Posts 694

    Re: Linking Database to Form

    Hi,

    Here is the code to send an email via code
    EmailAdapter oEmail = (EmailAdapter)thisXDocument.DataAdapters["Email Submit"];
    oEmail.To = "[email protected]; [email protected]";
    oEmail.CC = "[email protected]";
    oEmail.Subject = "employeeName.xml";
    oEmail.Intro = "Intro";
    oEmail.Submit();

    By using above code you can set the different email address to ‘oEmail.To#%92.

    Note: Above code is in c#
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.