is it possible in access 2007 to draw an X during runtime at a specified point on the report during runtime?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You may want to look into the Line method for drawing lines on reports. It’s hard to find the help for this — the easiest way is to open the VBE, type “line” in the immediate window, hit F1 for help, and then choosing the Access Line choice (not VBA or the Line (object) choice).
This allows you to specify a line with x/y coordinates.
However, that’s the easy part.
Determining what x and y should be is not trivial if you’re drawing something in one of the printable areas of a report, particularly for areas that can resize at format time. I have never used this except to draw vertical lines in subreports whose height is variable, so can’t really give any useful advice on this. But you can experiment and see.
I would suggest, however, that you may be using the wrong tools if you think you need to do it this way. Display an X may be as easy as creating a label with X as its caption and then control the visible property based on criteria tested at runtime.