Results 1 to 4 of 4
  1. #1
    Jackie is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    15

    Tab control problem

    Hi all

    New to the forum so would just like to say hi first

    I'm having some problems with a tab control form - I have three pages on the form and what I want to do is when a check box it ticked I want some text boxes to be copied over to other text boxes which works fine until one of the text boxes is on the other page

    Code is:

    Private Sub CustomerTenant_AfterUpdate()
    If CustomerTenant = -1 Then
    Me.TenantsHouse = Me.HouseNumber
    Me.TenantsAddress = Me.Address
    Me.TenantsEstate = Me.Estate


    Me.TenantsTown = Me.Town
    Me.TenantsPostcode = Me.Postcode
    TabControl1.Pages(1).TenantsForename = Me.Forename
    End If
    End Sub

    Can't seem to get this to work and I'm rubbish at explaining things so hope you can understand whatb i mean

    any help would be great cheers

    jackie

  2. #2
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    Disregard the tab when referring to the textbox. Presuming there's no subform involved:

    Me.TenantsForename = Me.Forename
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Jackie is offline Novice
    Windows Vista Access 2007
    Join Date
    Mar 2011
    Posts
    15
    Hi Cheers thanks for that I had tried this before but it wouldnt work just relised the text field was called TenantForename not TenansForename (forgot the s) really silly real blonde moment!!!

    Cheers

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    No problemo; we all have blond moments! Welcome to the site by the way.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

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

Similar Threads

  1. problem with MS Time and Date Control
    By LAazsx in forum Forms
    Replies: 1
    Last Post: 12-18-2010, 08:42 AM
  2. Weird Form Control Problem
    By MWB in forum Access
    Replies: 3
    Last Post: 11-17-2010, 05:42 PM
  3. Replies: 2
    Last Post: 06-14-2010, 03:25 PM
  4. Null Date control code problem
    By DanW in forum Forms
    Replies: 2
    Last Post: 11-10-2009, 03:13 PM
  5. Sending control to specific control
    By wasim_sono in forum Programming
    Replies: 2
    Last Post: 04-19-2007, 08:19 AM

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