Notices
Computer & Technology Related Post here for help and discussion of computing and related technology. Internet, TVs, phones, consoles, computers, tablets and any other gadgets.

Access Print

Thread Tools
 
Search this Thread
 
Old 24 May 2002, 10:24 AM
  #1  
Trotty
Scooby Regular
Thread Starter
 
Trotty's Avatar
 
Join Date: Feb 2002
Posts: 179
Likes: 0
Received 0 Likes on 0 Posts
Post

Hi all,

Got what will probably be a very simple problem here...
I've got a user who's creating an employee db in Access 2000. It's only basic but he's got a 'lil command button on the form which he wants to use to print the current record only - at the moment we're using:

DoCmd.PrintOut

but that prints all records! Don't know Access unfortunately and can't quite work out how to select & print just the current record?

Any suggestions appreciated.

Ian
Old 24 May 2002, 10:44 AM
  #2  
Crispin
Scooby Regular
 
Crispin's Avatar
 
Join Date: Jan 2001
Posts: 534
Likes: 0
Received 0 Likes on 0 Posts
Post

Code:
Function PrintRecord()
    ' This procedure selects the current record and prints it.
    RunCommand acCmdSelectRecord
    DoCmd.PrintOut acSelection
End Function
Old 24 May 2002, 10:59 AM
  #3  
Trotty
Scooby Regular
Thread Starter
 
Trotty's Avatar
 
Join Date: Feb 2002
Posts: 179
Likes: 0
Received 0 Likes on 0 Posts
Post

Thanks Crispin - that's twice this week now
Ian

[Edited by Trotty - 5/24/2002 11:00:14 AM]
Related Topics
Thread
Thread Starter
Forum
Replies
Last Post
JimBowen
ICE
5
02 July 2023 01:54 PM
TylerD529
General Technical
2
09 October 2015 01:53 AM
Littleted
Computer & Technology Related
4
25 September 2015 09:55 PM
andy97
Computer & Technology Related
12
16 September 2015 08:07 PM
farmerwrx
Computer & Technology Related
14
10 September 2015 11:59 AM



Quick Reply: Access Print



All times are GMT +1. The time now is 05:02 PM.