Results 1 to 9 of 9
  1. #1
    Sonya_S is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2012
    Posts
    10

    Creating Invoicing Statements for Customers using Forms and Reports - Please help :)

    Hello!


    I’m quite new to Access and I’m in the middle of implementing an invoicing system for a user. I’m struggling to create statements for each of the customers. Basically, I have created a form (StatementDate) which contains two unbound fields (StartDate) and (EndDate) and requires the user to enter dates using the date picker. Above that I have a combo box (Combo10) with the customers from which the user has to pick which customer he’d like a statement for.

    Using this, he can then create a report (Statement01) which will bring up the customer’s invoices between the two chosen dates.

    However, this is where I struggle. I have created the report with the customer’s details and the invoice details but I need a command button to open this report with the details in. The report is based on a query (Statement1). How do I go about doing this? What code would I need?

    Am I doing this correctly, or is there an easier method to create a statement for the customers?

    Please help.

    I hope this doesn’t sound confusing and I’m sorry if I sound a bit dumb too.

    Thank you,

    Sonya

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Sonya_S is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2012
    Posts
    10
    Hi there!

    Thank you for the links. They are helpful.

    I was following the first link you sent me, but I've stumbled across a problem. I've followed everything but when I choose a value in my combo box and click the open report button, a blank report opens. I don't know what I'm doing wrong. I've linked the form's combo box (CmbCustomer) into the query of the report (Statement01) by using [Forms]![StatementDate].[CmbCustomer] but it doesn't bring anything up besides a blank report.

    Where am I going wrong? Please help.

    Thank you,

    Sonya

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Show the combo properties:

    RowSource
    ControlSource
    BoundColumn
    ColumnCount
    ColumnWidths
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  5. #5
    Sonya_S is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2012
    Posts
    10
    The RowSource is Customers (from my customer table)
    The ControlSource is blank
    The BoundColumn is 1
    The ColumnCount is 2
    The ColumnWidths is 0cm;2.54cm

    Thank you

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Do you have an autonumber field as the primary key in Customers? Is that the first column in the combobox? Is the ID field included in the report RecordSource? Is the combobox referenced under the ID column for criteria?

    Want to provide db for analysis? Follow instructions at bottom of my post.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  7. #7
    Sonya_S is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2012
    Posts
    10
    Thank you,

    It was the Customer ID which was set to autonumber and needed to be added to the report. It now works.

    However, how would I get it to filter between two dates that the user can choose? I want the user to be able to choose the StartDate and the EndDate for the chosen customer. Is that possible?

    Thank you so much

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows XP Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,929
    Try this criteria under the date field:

    BETWEEN Nz([Forms]![StatementDate].[StartDate],#1/1/1900#) AND Nz([Forms]![StatementDate].[EndDate],#12/31/2100#)
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  9. #9
    Sonya_S is offline Novice
    Windows 7 32bit Access 2007
    Join Date
    Jul 2012
    Posts
    10
    It works!!!!!!

    Thank you so so so so so much!!! You're a star!!!!

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

Similar Threads

  1. Creating reports
    By d_evo in forum Reports
    Replies: 1
    Last Post: 02-29-2012, 02:31 PM
  2. neeed help on invoicing db (newbie)
    By sanlen in forum Access
    Replies: 2
    Last Post: 02-15-2012, 07:17 PM
  3. Automatic Invoicing
    By anoob in forum Access
    Replies: 8
    Last Post: 01-15-2011, 01:05 PM
  4. Replies: 17
    Last Post: 03-29-2010, 10:55 AM
  5. Creating Watermark in Access Reports / Forms
    By Alex Motilal in forum Reports
    Replies: 0
    Last Post: 11-21-2008, 07:11 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