Results 1 to 4 of 4
  1. #1
    rev_ollie is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2008
    Posts
    12

    Export form data to report

    Hey,



    Can anyone help me with a solution to send form data to a report.
    I want to be able to make a button on my form that will make all of the filed on the form inactive i.e cannot be changed, and then the data is sent to a report as an invoice.

    I'm fairly sure its stright forward but can't seem to find an answer. I think its more I don't know what I'm looking for. I know what I would like just not how to get there

    Any ideas?

  2. #2
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    To deactivate form controls use this Code:
    Me.ControlName.Locked=True
    or
    Me.ControlName.Enabled=False

    To activate just the opposite.

    You are probably looking for making the report from the table and then open from the Form using a Criteria

    Dim stDocName As String
    Dim stLinkCriteria As String

    stDocName = "Report1"

    stLinkCriteria = "[InvoiceNumber]=" & Me![InvoiceNumber]
    DoCmd.OpenReport stDocName, acViewPreview, , stLinkCriteria


    I am attaching a sample mdb file. check it out.

    if this solves your problem mark this thread solved.

  3. #3
    rev_ollie is offline Novice
    Windows 7 Access 2007
    Join Date
    Sep 2008
    Posts
    12
    Ah you are a legend

    Thanks very much

  4. #4
    maximus's Avatar
    maximus is offline Expert
    Windows 7 Access 2010 (version 14.0)
    Join Date
    Aug 2009
    Location
    India
    Posts
    931
    Thanks. happy to help

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

Similar Threads

  1. Export report to jpg
    By isdm in forum Reports
    Replies: 1
    Last Post: 04-16-2010, 10:00 PM
  2. export report to multiple tabs
    By mws5872 in forum Import/Export Data
    Replies: 0
    Last Post: 06-30-2009, 03:07 PM
  3. Replies: 0
    Last Post: 06-11-2009, 01:54 PM
  4. Export of Relationships Report
    By bar tomas in forum Reports
    Replies: 1
    Last Post: 04-09-2009, 09:03 AM
  5. Run report or sub form during data entry
    By wasim_sono in forum Programming
    Replies: 0
    Last Post: 03-09-2006, 05:40 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