473,379 Members | 1,170 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Report Blank When Cursor is on Blank Line?

My basic question is why does my print report button on my subform print a
blank report when my cursor is on a blank entry line? Here is a more
detailed explanation of my problem.
I have a form that contains shipment destination information and a subform
that contains boxes for that shipment. The main form is a table called
Ship_Info, and the subform is a table called Label_Info. They both contain
and are linked by a field called Load_ID. My report is called "Load Sheet".

I have a button on the subform that prints the records only on that subform
to the "Load Sheet" report. This works great. The subform is a continuous
sheet, so as I add fields, it adds another blank line below to enter another
record. I move from field to field in the form by hitting tab or enter.
When I hit tab or enter, it moves my cursor to the next blank line. If I
hit the "Print Load Sheet" button on the subform while my cursor is in the
blank line, the report is blank. If I move my cursor to the previous
record, the report has all the records on the subform like it should. The
records seem to be savedIs there something I can do so that it will print
the records when I am on the blank line? The records seem to

I am using:

Me!Field_Name.DefaultValue = """" & Me!Field_Name & """"

on a few fields to populate the next field with the same value--if this
makes any difference.

I am using:

DoCmd.OpenReport "Load Sheet", acPreview, , "[Load_ID]= " & "'" &
Me![Load_ID] & "'"

to print my Load Sheet from the subform.

Any information would be appreciated.

Thanks,

Chad
Nov 13 '05 #1
5 2416
how about checking whether the line you are currently on is new but not
dirty and then moving to the previous record if it is. Then print.

Nov 13 '05 #2
Sounds good. How exactly do I do that? I need to be able to print while on
the balnk line.

Chad
<pi********@hotmail.com> wrote in message
news:11**********************@z14g2000cwz.googlegr oups.com...
how about checking whether the line you are currently on is new but not
dirty and then moving to the previous record if it is. Then print.

Nov 13 '05 #3
Sorry, I should elaborate, I understand the dirty command, but I how to
I move to the previous records? If you have already responded. Ignore
this message.

Thank You,

Chad

Nov 13 '05 #4

ChadDiesel wrote:
My basic question is why does my print report button on my subform print a blank report when my cursor is on a blank entry line? Here is a more detailed explanation of my problem.
I have a form that contains shipment destination information and a subform that contains boxes for that shipment. The main form is a table called Ship_Info, and the subform is a table called Label_Info. They both contain and are linked by a field called Load_ID. My report is called "Load Sheet".
I have a button on the subform that prints the records only on that subform to the "Load Sheet" report. This works great. The subform is a continuous sheet, so as I add fields, it adds another blank line below to enter another record. I move from field to field in the form by hitting tab or enter. When I hit tab or enter, it moves my cursor to the next blank line. If I hit the "Print Load Sheet" button on the subform while my cursor is in the blank line, the report is blank. If I move my cursor to the previous record, the report has all the records on the subform like it should. The records seem to be savedIs there something I can do so that it will print the records when I am on the blank line? The records seem to

I am using:

Me!Field_Name.DefaultValue = """" & Me!Field_Name & """"

on a few fields to populate the next field with the same value--if this makes any difference.

I am using:

DoCmd.OpenReport "Load Sheet", acPreview, , "[Load_ID]= " & "'" &
Me![Load_ID] & "'"

to print my Load Sheet from the subform.

Any information would be appreciated.


When you're on a new record in your subform, [Load_ID] won't have a
value yet and will not have a value until the record is saved. If I
were you I would modify my OpenReport code to use the value of
[Load_ID] from the parent form, e.g.

DoCmd.OpenReport "Load Sheet", acPreview, , "[Load_ID]= '" &
Me.Parent.Form![Load_ID] & "'"

HTH,
Bruce

Nov 13 '05 #5
Thanks for the information. That worked great.

Chad

<br***@aristotle.net> wrote in message
news:11*********************@f14g2000cwb.googlegro ups.com...

ChadDiesel wrote:
My basic question is why does my print report button on my subform

print a
blank report when my cursor is on a blank entry line? Here is a more

detailed explanation of my problem.
I have a form that contains shipment destination information and a

subform
that contains boxes for that shipment. The main form is a table

called
Ship_Info, and the subform is a table called Label_Info. They both

contain
and are linked by a field called Load_ID. My report is called "Load

Sheet".

I have a button on the subform that prints the records only on that

subform
to the "Load Sheet" report. This works great. The subform is a

continuous
sheet, so as I add fields, it adds another blank line below to enter

another
record. I move from field to field in the form by hitting tab or

enter.
When I hit tab or enter, it moves my cursor to the next blank line.

If I
hit the "Print Load Sheet" button on the subform while my cursor is

in the
blank line, the report is blank. If I move my cursor to the previous

record, the report has all the records on the subform like it should.

The
records seem to be savedIs there something I can do so that it will

print
the records when I am on the blank line? The records seem to

I am using:

Me!Field_Name.DefaultValue = """" & Me!Field_Name & """"

on a few fields to populate the next field with the same value--if

this
makes any difference.

I am using:

DoCmd.OpenReport "Load Sheet", acPreview, , "[Load_ID]= " & "'" &
Me![Load_ID] & "'"

to print my Load Sheet from the subform.

Any information would be appreciated.


When you're on a new record in your subform, [Load_ID] won't have a
value yet and will not have a value until the record is saved. If I
were you I would modify my OpenReport code to use the value of
[Load_ID] from the parent form, e.g.

DoCmd.OpenReport "Load Sheet", acPreview, , "[Load_ID]= '" &
Me.Parent.Form![Load_ID] & "'"

HTH,
Bruce

Nov 13 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Bob | last post by:
Hi, I am using Access 2000 to print out an address book. I have designed the report based on a database whose first record is not blank. In the design there is a one line report header, a onle...
5
by: MX1 | last post by:
Hi, I have a report with Name1 and Name2 in the address section . Sometimes, Name2 is not populated with data via the query that feeds the report. Unfortunately, the blank line stays in the...
0
by: P K | last post by:
Hi, I have an MS Access report which consists of Multiple subreports, when i export the report to MS RTF format in few cases it leaves a Big blank space on the sheet which is like 6 inches...
3
by: grlgeek | last post by:
I have a report for creating the switchboard labels for our phone system receptionist switchboard. The template has 12 records per column. I setup a report that will create the labels and put a...
3
by: BradC | last post by:
I have a big VS 2002/2003 annoyance, and wondering if there is a way to turn it off: Put your cursor at the start of an indented line of code inside a function. (right before the first...
2
by: JohnR | last post by:
When creating an msAccess db within the Access UI itself the fields that are text are NOT padded with blanks. For example, if I have a 10 char field and put in "HI" and then when I come back to...
12
by: mvsguy | last post by:
I'm an Access noob and apologize if I'm asking a stupid question. The problem is that I'm unable to design/preview reports on a database. How do I go about fixing this? Background - A user has...
1
by: siomay87 | last post by:
please help i have a problem in the ms access reporting, my report have: page header, detail, page footer and report footer In listing "detail section", the number of line is depend on the data...
2
by: gazsharpe101 | last post by:
Hi everyone. I am working on a report that has a running sum text box throughout the detail section of the report. In the report footer I have a summary in which I have a text box i.e. txtTotal,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.