INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

Automatically insert a straight line in access report if condition is met

Automatically insert a straight line in access report if condition is met

Automatically insert a straight line in access report if condition is met

(OP)
Hi,

I have an access form to take customer's orders. Once the order is complete before going to the next new order one must print the form into an access report which automatically saves it as pdf. Items in an order can differ from a standard box to an item sold by weight. Each box by weight has different weight and client is charged by kg and not by the number of cases. For such items by weight I would like to insert a line underneath in the report so that stores personnel can write down the weights by pen.

In the products table I have a particular column showing if the item is by weight or not. If the item is by weight is flagged Y and if not is flagged as N. So I need to create a solution so that in the report for every item inputted in the order which is flagged Y an extra line is inserted automatically in the report.

Thanks for your help.

RE: Automatically insert a straight line in access report if condition is met

Have a look at MoveLayout, NextRecord, PrintSection Properties of the report. It is pretty easy to use an If...Then in the detail print section to accomplish this. Something like:

CODE

If fieldname = True  Then
        MoveLayout = True
        NextRecord = False
        PrintSection = True
    End If 

Beir bua agus beannacht!

RE: Automatically insert a straight line in access report if condition is met

Oops I may have misread the post banghead.
If you want a straight line and not a blank line, draw the line, and toggle its .Visible property on and off.

Beir bua agus beannacht!

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close