Results 1 to 9 of 9
  1. #1
    Lowell is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Location
    Manitoba, Canada
    Posts
    54

    Option Group Not Populating

    I have an option group that has three options.



    I have no defaults. It is an option group for 3 choices of payment.
    So I fill in all the information that I need and then the customer shows the type of payment that they plan to use.

    I tick the button on the option group that applies.

    Then I go to print the invoice.

    The type of payment is supposed to be saved in the table with their customer info and is supposed to be printed on the invoice.

    The problem is that it doesn't show up at either place until I move to a different record or close and reopen the sale.

    Surely there is a way to make it poplulate by tabbing off of it to the print command button??

    Or some other way??

  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,640
    Sounds like you need to force a save of the record:

    If Me.Dirty Then Me.Dirty = False
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  3. #3
    Lowell is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Location
    Manitoba, Canada
    Posts
    54
    where would you recommend putting the code?

    On AfterUpdate on each option on in the option group?

    Or would you put it on the print command button?

  4. #4
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    I'd put it behind the print button.
    Paul (wino moderator)
    MS Access MVP 2007-2019
    www.BaldyWeb.com

  5. #5
    orange's Avatar
    orange is offline Moderator
    Windows XP Access 2003
    Join Date
    Sep 2009
    Location
    Ottawa, Ontario, Canada; West Palm Beach FL
    Posts
    16,847
    Is the reporting part of the invoicing process?

    You could have some sales/orders/invoicing to update your tables, and then have a separate Reporting Mechanism to print reports from Customers, Orders, ...Invoices, Invoices(PaymentsOutstanding), PaymentsReceived... etc.

    But if it is part of the invoice process, then you must ensure the table gets updated with the PaymentType.

    Where is PaymentType located?
    Can you post a jpg of your tables and relationships?

  6. #6
    Lowell is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Location
    Manitoba, Canada
    Posts
    54
    In response to your suggestion pbaldy, I guess I don't understand your lingo.

    When you say put it behind, what do you mean.
    The print command button runs a print macro, not code.
    Are you suggesting that I would put the 'save' code before the print command in the macro?

  7. #7
    Lowell is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Location
    Manitoba, Canada
    Posts
    54
    In response to orange, the payment option is just an option group on the invoicing form.

    When I select the customer, the info of what they are buying comes up.
    Then I tick the button on the group and it is supposed to print on the invoice what option they chose to print with as mentioned above.
    Also, at the end of the day, I can count up the different types of transactions to see if it all equals.

    By the way, sorry to not inform earlier, this is an auction sale program, that requires speed at the checkout end of things. I want to make everything as streamlined as possible.

  8. #8
    Lowell is offline Advanced Beginner
    Windows 7 64bit Access 2007
    Join Date
    Mar 2012
    Location
    Manitoba, Canada
    Posts
    54
    I have attached these jpgs for your info.

    L
    Click image for larger version. 

Name:	Program Tables.jpg 
Views:	4 
Size:	22.4 KB 
ID:	11886Click image for larger version. 

Name:	Invoice Form.jpg 
Views:	6 
Size:	60.5 KB 
ID:	11887

  9. #9
    pbaldy's Avatar
    pbaldy is offline Who is John Galt?
    Windows XP Access 2007
    Join Date
    Feb 2010
    Location
    Nevada, USA
    Posts
    22,640
    You should be able to add the macro equivalent to your macro. I think it's in the RunCommand area.
    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. Use of option group buttons
    By sireesha in forum Forms
    Replies: 1
    Last Post: 10-25-2012, 01:20 PM
  2. Option Group Query
    By SeaTigr in forum Queries
    Replies: 13
    Last Post: 04-23-2012, 12:49 PM
  3. Option Group
    By x__hoE__x in forum Access
    Replies: 2
    Last Post: 12-10-2011, 09:39 AM
  4. Option Group
    By huskies in forum Forms
    Replies: 9
    Last Post: 12-02-2009, 12:06 PM
  5. option group in form
    By mawa4492 in forum Forms
    Replies: 1
    Last Post: 08-05-2009, 02:49 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