Results 1 to 8 of 8
  1. #1
    gebmiller1984 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jan 2015
    Location
    Devon
    Posts
    22

    Record report help

    Hi I have created a form where data is inputted from another table. I enter Invoice amounts etc in this table. Click to preview a invoice. Works perfect. What I want to add to this is 3 tick boxes. all three are different terms and conditions. What I want help with is how to add this to the current record print setup so that when a particular box is ticked whether is Terms and Conditions A, B or C it will add the particular one to the invoice. Any help would be appreciated.



    Thanks

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    The invoice is a report object?

    Don't you want this condition indicator saved with the invoice record? That would be the easiest approach. Save condition indicator (1, 2, 3 would be easier than A, B, C) into record. Then calculation on report can display the appropriate text based on value in field. How long is this text?

    Could also have a TermsConditions table with 3 records. Join this table to the data table in report RecordSource and bind textbox to the descriptive text field.
    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
    gebmiller1984 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jan 2015
    Location
    Devon
    Posts
    22
    Prob about 20 words. May try the Table idea as then I can change at a later date easier. Thanks

  4. #4
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Suggest you use radio buttons in an option group and save 1,2,3 - if you go this route and still want A, B, C will need code.

    Or use a combobox with 3 choices then can easily save A,B,C. The combobox can use table as source for the list.
    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
    gebmiller1984 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jan 2015
    Location
    Devon
    Posts
    22
    I have tried the Table route but What I want it wont work for. Any examples of how I could do this from selecting a tick box idea out of 3. Coding??

  6. #6
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    Why won't table work?

    Are you saving the condition ID into the invoice record? If saving 1,2,3, expression in textbox on report could be like:

    =Choose([Condition], "this text", "other text", "another text")
    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
    gebmiller1984 is offline Novice
    Windows 7 64bit Access 2003
    Join Date
    Jan 2015
    Location
    Devon
    Posts
    22
    The amount I need is too long. Could I use a memo box. Also I cant seem to make things work. May be just what Im doing. Could you send me a bit of some instructions on how to do it. Thanks

  8. #8
    June7's Avatar
    June7 is online now VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,646
    If the text lengths are too long for expression in textbox, will have to use a table with memo field.

    Rather see what you attempted. If you 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.

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

Similar Threads

  1. Replies: 17
    Last Post: 07-15-2014, 06:17 AM
  2. Replies: 14
    Last Post: 11-20-2013, 11:27 PM
  3. Replies: 6
    Last Post: 08-10-2012, 09:37 AM
  4. Replies: 1
    Last Post: 03-26-2012, 03:01 PM
  5. Replies: 1
    Last Post: 02-02-2009, 05:52 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