Results 1 to 3 of 3
  1. #1
    tim_tims33 is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Dec 2011
    Posts
    62

    Post Frequent error in Referring/linking a textbox in subform from textbox within mainform

    Hi,
    I've been working with simple invoice systems for a while now, and i can get them to work ok. A frustrating problem arises now and again that I can't understand why.

    I've attached an example to help me explain (see attachment)

    Go to frmInvoice, and you'll see a Net Total box (txtNetTotal) . It's control source is linked to a textbox in the subform fsubInvoiceDetails2 called txtStocktotal. It basically just pulls up all the costs associated with that InvoiceID.



    The reference mechanism is as follows: =[fsubInvoiceDetails2].[Form]![txtStockTotal]

    Now...sometimes this works and sometimes it doesn't! Sometimes i've had to use: =forms!fsubInvoiceDetails2!txtStockTotal.

    It seems to be very temperamental at times and i'm not fully confident if this can be explained.

    By way of note, I use express builder normally to input these statements: I go to Forms > ALL FORMS > fsubInvoiceDetails2 > txtstocktotal.

    Am I loosing it?
    Attached Files Attached Files

  2. #2
    ssanfu is offline Master of Nothing
    Windows XP Access 2000
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    It seemed to update for me.... You might read this site about referencing main forms and subforms:
    http://access.mvps.org/access/forms/frm0031.htm

    ------------------------
    I noticed you don't have name autocorrect (aka auto-corrupt) turned off - see http://allenbrowne.com/bug-03.html

    It appears you are using autonumbers in the customer, invoice and stock tables as identification (you are displaying them on the forms). This is not a good idea.

    See
    http://access.mvps.org/access/general/gen0025.htm
    http://www.utteraccess.com/wiki/index.php/Autonumbers
    http://www.utteraccess.com/forum/Aut...t-t443604.html

    Good luck with your project..

  3. #3
    tim_tims33 is offline Advanced Beginner
    Windows 7 64bit Access 2003
    Join Date
    Dec 2011
    Posts
    62
    Hmm...this is very interesting. Thanks for this Ssanfu

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

Similar Threads

  1. Replies: 8
    Last Post: 04-12-2013, 08:59 PM
  2. Replies: 2
    Last Post: 02-16-2012, 04:29 PM
  3. Replies: 17
    Last Post: 02-08-2012, 10:06 AM
  4. Replies: 3
    Last Post: 12-06-2011, 07:37 AM
  5. TextBox control not linking to query data
    By tylerg11 in forum Forms
    Replies: 3
    Last Post: 09-28-2011, 09:56 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