Results 1 to 3 of 3
  1. #1
    brettnolan is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    4

    Check box - "Same as billing address"


    I have a form asking for a billing address and a service address. Many times these will be the same. I added a check box to check to populate the following fields; Service Address, Service City, Service State, Service Zip.

    Fields that it will be coming from are the same, just named Billing instead of service. Tried expression builder and macro builder with no luck. I know this is simple.

    Thanks again in advance,
    brettnolan

  2. #2
    brettnolan is offline Novice
    Windows XP Access 2007
    Join Date
    Apr 2014
    Posts
    4
    While I'm here asking a stupid question...how about a quick sub procedure to clear all fields when I open the form?

    thanks

  3. #3
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,772
    I don't use macros, only VBA. Is this form in single or continuous view? Is the checkbox bound or unbound? Code in checkbox Click event:

    If Me.checkboxname = True Then
    Me.[Service Address] = Me.[Billing Address]
    Me.[Service City] = Me.[Billing City]
    Me.[Service State] = Me.[Billing State]
    Me.[Service Zip] = Me.[Billing Zip]
    Else
    Me.[Service Address] = Null
    Me.[Service City] = Null
    Me.[Service State] = Null
    Me.[Service Zip] = Null
    End If

    What do you mean by 'clear the fields'? Is this form bound to table/query? Then what you need is move to new record or open the form in DataEntry only mode.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 12-10-2013, 12:59 AM
  2. Replies: 3
    Last Post: 04-22-2013, 06:08 AM
  3. Replies: 1
    Last Post: 05-10-2012, 11:56 AM
  4. Replies: 3
    Last Post: 11-15-2011, 02:41 PM
  5. Change outlook "From" Address
    By jgelpi16 in forum Programming
    Replies: 1
    Last Post: 05-25-2011, 12:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums