Results 1 to 2 of 2
  1. #1
    sainathdk is offline Novice
    Windows XP Access 2003
    Join Date
    Jan 2011
    Posts
    1

    unbound text box data not appearing in print preview

    I have a form with some unbound and bound controls. The form has a record source. When the form is run and controls are populated via a query (the recordsource), the user enters data in some unbound controls. The form also has a button which displays in print preview mode.



    When the custom print preview button is clicked, the data from the unbound controls do not appear in the preview. But if I use the file-print preview menu item, the data is properly seen.

    Below is the code written in the button click to display print preview

    DoCmd.SelectObject acForm, "AnswerForm"
    Printer.Orientation = acPRORLandscape
    DoCmd.RunCommand acCmdPrintPreview
    DoCmd.Maximize

    I am unable to figure out why this behavior is happening. Any help with this is appreciated a lot.

    Sincerely,
    Sainath

  2. #2
    ansentry's Avatar
    ansentry is offline Advanced Beginner
    Windows XP Access 2003
    Join Date
    May 2009
    Location
    Melbourne, Australia
    Posts
    67
    You should use reports for printing, forms are for data entry.

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

Similar Threads

  1. Replies: 11
    Last Post: 10-06-2010, 12:19 AM
  2. Can't see sub report in print preview
    By LoggyDoggy in forum Access
    Replies: 1
    Last Post: 04-20-2010, 05:38 PM
  3. Input data In unbound text box
    By chu3w in forum Forms
    Replies: 1
    Last Post: 04-01-2010, 10:21 AM
  4. Print Preview different from Print Hardcopy
    By peterc in forum Reports
    Replies: 4
    Last Post: 10-27-2009, 05:35 AM
  5. Error when trying to print or print preview
    By TriAdX in forum Reports
    Replies: 8
    Last Post: 08-25-2009, 08:20 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 - Senior Forums