How to populate Mailing Address if its same as Street Address?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • razjafry
    New Member
    • Sep 2007
    • 30

    How to populate Mailing Address if its same as Street Address?

    Hi Gurus,
    I have street address fields as Addr1, Addr2, City, PCode, Prov, Country.
    Then I have a check box asking if the mailing address is same as the street address.
    How I can populate all the corresponding mailing address fields automatically if someone checks the check box as Yes.
    I use mailing address fields as MailAddr1, MailAddr2, MailCity, MailPCode, MailProv, MailCountry.
    I really appreciate all the help.
    Thanks,
    Syed
  • missinglinq
    Recognized Expert Specialist
    • Nov 2006
    • 3533

    #2
    A brief example:

    Code:
    Private Sub YourCheckBox_AfterUpdate()
    If YourCheckBox Then
      Me.mailaddr1 = Me.addr1
      Me.mailaddr2 = Me.addr2
    Else
      Me.mailaddr1 = ""
      Me.mailaddr2 = ""
    End If
    End Sub
    Linq ;0)>

    Comment

    • razjafry
      New Member
      • Sep 2007
      • 30

      #3
      Thanks a lot.
      It worked right away the way I wanted.
      You are actually BridgingLinq(K) instead of missinglinq -:)

      Take care,
      Syed

      Comment

      Working...