Results 1 to 10 of 10
  1. #1
    crecker is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    6

    Desktop services template - add items to invoice


    I am using the Desktop services template as a starting point for an invoicing app. I would like to be able to add a product and/or service after the invoice is submitted so I can add a finance charge for invoices that haven't been paid yet. The template is setup to prevent items from being added once it is submitted. Can anyone help me with a work around or point me to the macro / rule that is preventing this action?

  2. #2
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Not familiar with that template. However, I would think a finance charge should be another transaction on the account, not an adjustment to the invoice, and be reflected as a line on a monthly statement.
    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
    crecker is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    6
    Thanks for the suggestion but I really need it to be an adjustment to the existing invoice.

  4. #4
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    I download the template presented by Access and it is actually a web version. Is that what you have?

    This template is macro heavy. I don't use macros (I don't build web databases).

    The InvoiceDetail form has an OnCurrent event embedded macro that runs a standard macro called Invoices. Depending on value of varAllowInvoiceChanges as set by the SetLocalVar action, a submacro called SetInvoiceState:

    1. locks the subform container control sbfServiceDetails
    2. locks the subform container control sbfProductDetails
    3. disables the Submit button

    Make changes as you dare.
    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
    crecker is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    6
    Yes what I have is a web version but I plan on having my friend just run it on his desktop. Thank for the information, I will try to look at those macros and see if I can modify them to allow the app to work the way I would like. I am by no means a macro savy person but at least now I know where to start looking.

  6. #6
    crecker is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    6
    Okay, I open the macro Invoice in design view, under Submacro: SetFormState I tried deleting both SetProperty - sbfServiceDetails and sbfProductDetails and saved my changes. Opened a submitted invoice but it still won't let me add a line to the invoice.

    Are these the correct things I should be getting rid of to allow changes to a submitted invoice or perhaps I didn't interpret your suggestion correctly?

  7. #7
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    What I did.

    1. open InvoiceDetail form in layout view

    2. delete the call to the SetFormState macro.

    3. select each subform container control (use the dropdown box on Property Sheet) and change the Locked property to no, save the from

    4. open InvoiceDetail from Main, edit invoice
    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.

  8. #8
    crecker is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    6
    That works for adding lines to existing invoice but it breaks the functionality of Submitting the invoice and the error checking which are very important to keep.

  9. #9
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    Not surprising. So instead of removing reference to macro, edit it as you see appropriate. Just make sure the form doesn't get saved with those Locked properties set to yes. Good luck.
    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.

  10. #10
    crecker is offline Novice
    Windows 7 64bit Access 2010 64bit
    Join Date
    Jan 2014
    Posts
    6
    In the Invoices macro, under SetFormState macro I deleted the call to set the sbfServiceDetails and sbfProductDetails to locked. Opened the InvoiceDetail form in layout view, set both subforms to Lock = No. This seems to be working and keeps the rest of the processing and error checking working normally.

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

Similar Threads

  1. Desktop Time and Billing Template with VAT
    By Jazz Man in forum Access
    Replies: 3
    Last Post: 11-12-2013, 04:23 PM
  2. Replies: 5
    Last Post: 08-21-2013, 07:02 AM
  3. Replies: 1
    Last Post: 08-14-2013, 06:29 PM
  4. Replies: 4
    Last Post: 06-26-2013, 11:48 AM
  5. Replies: 2
    Last Post: 03-30-2012, 02:37 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