Referencing Text Box Control in Tab Control Access 2007

Posted on 2011-10-03
Last Modified: 2012-05-12

I am having an issue with referencing text box controls within a form tab control.

I have enclosed my current syntax that is bugging.

Can anyone help me define the correct method of doing this please?


NEWCustomerDataCollectionArray(1) = Forms!frm_MAIN!TabCtl0!Pages("Customer").Controls("Company").Value

Open in new window

Question by:creativefusion
    LVL 75

    Accepted Solution

    You should only need this:

    NEWCustomerDataCollectionArray(1) = Forms!frm_MAIN!Company

    Author Closing Comment

    Excellent help.
    LVL 75

    Expert Comment

    by:DatabaseMX (Joe Anderson - Access MVP)
    You are welcome ...

    LVL 75

    Expert Comment

    by:DatabaseMX (Joe Anderson - Access MVP)
    Forgot to mention.  No special syntax is required to reference Controls on a Tab Control ... although this is probably not ... obvious.


    Featured Post

    Do You Know the 4 Main Threat Actor Types?

    Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

    Join & Write a Comment

    When you are entering numbers in a speadsheet, and don't remember what 6×7 is, you just type “=6*7" instead. It works in every cell! This is not so in Access. To enter the elusive 42 in a text box, you have to find a calculator, and then copy the re…
    Introduction The Visual Basic for Applications (VBA) language is at the heart of every application that you write. It is your key to taking Access beyond the world of wizards into a world where anything is possible. This article introduces you to…
    Familiarize people with the process of utilizing SQL Server stored procedures from within Microsoft Access. Microsoft Access is a very powerful client/server development tool. One of the SQL Server objects that you can interact with from within Micr…
    In Microsoft Access, learn the trick to repeating sub-report headings at the top of each page. The problem with sub-reports and headings: Add a dummy group to the sub report using the expression =1: Set the “Repeat Section” property of the dummy…

    728 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now