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 » Setting Up & Running Reports
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

printing filtered date on a report(label)



 
 
Thread Tools Display Modes
  #1  
Old January 15th, 2009, 02:58 PM posted to microsoft.public.access.reports
Coles
external usenet poster
 
Posts: 1
Default printing filtered date on a report(label)

I have a form on which I enter patient date ie name, address, date of birth,
phone #, etc. I would like to put a button on this form that prints a report
(mailing label) with JUST THAT PERSON's data. I currently print such a label
through a query which asks for criteria - lastname, firstname. This is
cumbersome and slow. The primary key is the patient's surname. I have no
experience with macros or visual basic so please 'dumb down' your solutions.
Any help would be appreciated. Thank you. Is. Coles

  #2  
Old January 16th, 2009, 05:29 AM posted to microsoft.public.access.reports
Al Campagna[_2_]
external usenet poster
 
Posts: 1,462
Default printing filtered date on a report(label)

Coles,
The first problem is using the surname as a primary key. What happens
when you have two Smith entries?
You'll have problems down the line if you don't correct that...

You need a real key value, such as an autonumber, to be assured that
each record has a unique value, that differentiates it from all others.

If, for example, you had a autonumber key field called CustID. Then,
while on a specific customers record, a button on your form could be used to
print just that customer label using...
DoCmd.OpenReport "rptMyLabels", , , "CustID = " & CustID
--
hth
Al Campagna
Microsoft Access MVP
http://home.comcast.net/~cccsolutions/index.html

"Find a job that you love... and you'll never work a day in your life."

"Coles" u48881@uwe wrote in message news:9039bfa3af404@uwe...
I have a form on which I enter patient date ie name, address, date of
birth,
phone #, etc. I would like to put a button on this form that prints a
report
(mailing label) with JUST THAT PERSON's data. I currently print such a
label
through a query which asks for criteria - lastname, firstname. This is
cumbersome and slow. The primary key is the patient's surname. I have
no
experience with macros or visual basic so please 'dumb down' your
solutions.
Any help would be appreciated. Thank you. Is. Coles



 




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


All times are GMT +1. The time now is 07:01 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.