A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Problem printing multiple records



 
 
Thread Tools Display Modes
  #1  
Old February 14th, 2005, 06:01 PM
external usenet poster
 
Posts: n/a
Default Problem printing multiple records

Good Morning,

I'm hoping someone can help me with the following problem. I have 8 people
who work for me , all use an Access97 database to perform inspections and
report results.

One computer , (same brand and type exact- as all 7 others), when a "Print"
Button is invoked on one form , tries to print all the records in the
database (about 6700 of them). The same code on another form , when invoked
only prints a single record as designed. The same code runs both occurrences
of the print button in both places. The properties look exactly like the
ones on the other machines and there appears to be no difference between the
code on one machine and another. Everybody has the same front end / back end
in a split database and it appears as if the code invoked by the "Print"
button is exactly the same in all the machines, on both occurrences of the
print buttons. All computers are running MS Windows 2000 , Service PK 4.

I have no idea what is causing this. Has anyone else seen this ?

The code behind the print button is :

Private Sub cmdPrint_Click()
On Error GoTo Err_cmdPrint_Click

Dim stDocName As String
Dim strReportSelected As String

'since this form is for creating new records, I need to make
'sure the record has been written to the table before I try to
'print it
RunCommand acCmdSaveRecord

stDocName = "rptSingleAssessment"
strReportSelected = "intRecordNumber = " & Me!intRecordNumber
DoCmd.OpenReport stDocName, acNormal, , strReportSelected

Exit_cmdPrint_Click:
Exit Sub

Err_cmdPrint_Click:
MsgBox Err.Description
Resume Exit_cmdPrint_Click

End Sub

Thankx,
Michael Jordan


to reply by email : remove the Nospam_


  #2  
Old February 14th, 2005, 08:17 PM
George Nicholson
external usenet poster
 
Posts: n/a
Default

Are all machines running the same level of Office/Access 97 Service packs?

--
George Nicholson

Remove 'Junk' from return address.


wrote in message
...
Good Morning,

I'm hoping someone can help me with the following problem. I have 8 people
who work for me , all use an Access97 database to perform inspections and
report results.

One computer , (same brand and type exact- as all 7 others), when a
"Print" Button is invoked on one form , tries to print all the records in
the database (about 6700 of them). The same code on another form , when
invoked only prints a single record as designed. The same code runs both
occurrences of the print button in both places. The properties look
exactly like the ones on the other machines and there appears to be no
difference between the code on one machine and another. Everybody has the
same front end / back end in a split database and it appears as if the
code invoked by the "Print" button is exactly the same in all the
machines, on both occurrences of the print buttons. All computers are
running MS Windows 2000 , Service PK 4.

I have no idea what is causing this. Has anyone else seen this ?

The code behind the print button is :

Private Sub cmdPrint_Click()
On Error GoTo Err_cmdPrint_Click

Dim stDocName As String
Dim strReportSelected As String

'since this form is for creating new records, I need to make
'sure the record has been written to the table before I try to
'print it
RunCommand acCmdSaveRecord

stDocName = "rptSingleAssessment"
strReportSelected = "intRecordNumber = " & Me!intRecordNumber
DoCmd.OpenReport stDocName, acNormal, , strReportSelected

Exit_cmdPrint_Click:
Exit Sub

Err_cmdPrint_Click:
MsgBox Err.Description
Resume Exit_cmdPrint_Click

End Sub

Thankx,
Michael Jordan


to reply by email : remove the Nospam_



  #3  
Old February 14th, 2005, 10:11 PM
Albert D. Kallal
external usenet poster
 
Posts: n/a
Default

Thus sounds like the expression service is broken.

To ensue a trouble free ms-access environment, you need for all machines to:

install sr1
install sr2b

And *most* important install the jet update *after* you done the above. The
update for jet is jet35sp3.exe

If you don't install the jet update, then expressions in ms-access97 can
break. So, make sure you got ser2b installed, and the jet update.

--
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada

http://www.members.shaw.ca/AlbertKallal


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Pasting multiple records into a form Jeremy Saul Using Forms 2 December 15th, 2004 06:57 PM
Append Query problem -- producing WAY too many records. Richard Hollenbeck Running & Setting Up Queries 3 July 24th, 2004 09:32 AM
Multiple Instances problem Jordan Using Forms 1 July 19th, 2004 03:21 PM
Filtering Records on a form using multiple combo boxes Mark Senibaldi Using Forms 1 June 17th, 2004 07:05 PM
Filtering records using multiple combo boxes Mark Senibaldi Using Forms 0 June 17th, 2004 03:55 PM


All times are GMT +1. The time now is 01:20 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.