Results 1 to 2 of 2
  1. #1
    crimedog is offline Competent Performer
    Windows 7 64bit Access 2010 64bit
    Join Date
    Dec 2013
    Posts
    141

    Vba Code to Calculate Text Box and fill in Value

    I have some unbound text boxes that I wrote Select Case VBA code to fill in values.
    I could not figure out the best event to place the code in - because it relies on information calculated by the form. If I place the code on Load - the data it relies on does not exist yet.
    So I added a button - the Report Loads, calculates, Then press button, Text boxes 1 2 & 3 are filled in.
    The problem is: on Print Preview - the data is not there.


    Do I need to print without the print preview?

  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,521
    For print preview I'd try the format event of the section containing the textboxes (detail, etc).
    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. Replies: 2
    Last Post: 02-05-2015, 02:50 PM
  2. vba code for To calculate the inverse matrix
    By Milade8080 in forum Modules
    Replies: 1
    Last Post: 03-11-2014, 06:10 AM
  3. Replies: 15
    Last Post: 04-01-2011, 11:41 AM
  4. Fill One text box from the other
    By adsm in forum Forms
    Replies: 4
    Last Post: 08-17-2010, 10:28 AM
  5. auto fill certain text fields?
    By darklite in forum Forms
    Replies: 4
    Last Post: 07-12-2010, 02:20 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