PC Review


Reply
Thread Tools Rate Thread

report by unique identifier

 
 
=?Utf-8?B?ZmFzY2Fs?=
Guest
Posts: n/a
 
      16th Mar 2006
Hi,

I have a command button on a form. The form brings up patient information
by a unique identifier called PatientID. The button calls open to preview
before printing a form a sheet of 30 labels. The problem, is that instead of
bringing up just a sheet for that one patient, it brings up a sheet of 30
labels for every patient.

any help would be appreciated. The code is below.

Private Sub cmdHCPatientLabel_Click()

DoCmd.OpenForm "HC_labels", acNormal, ,
"[forms]![frmPatients]![PatientID]=" & [PatientID]


End Sub
 
Reply With Quote
 
 
 
 
apna
Guest
Posts: n/a
 
      16th Mar 2006
I think try this

DoCmd.OpenForm "HC_labels", acSelection, ,
"[forms]![frmPatients]![PatientID]=" & [PatientID]


"fascal" <(E-Mail Removed)> wrote in message
news:ACD1F85C-D464-4223-A09C-(E-Mail Removed)...
> Hi,
>
> I have a command button on a form. The form brings up patient information
> by a unique identifier called PatientID. The button calls open to preview
> before printing a form a sheet of 30 labels. The problem, is that instead
> of
> bringing up just a sheet for that one patient, it brings up a sheet of 30
> labels for every patient.
>
> any help would be appreciated. The code is below.
>
> Private Sub cmdHCPatientLabel_Click()
>
> DoCmd.OpenForm "HC_labels", acNormal, ,
> "[forms]![frmPatients]![PatientID]=" & [PatientID]
>
>
> End Sub



 
Reply With Quote
 
=?Utf-8?B?ZmFzY2Fs?=
Guest
Posts: n/a
 
      16th Mar 2006
that opened the form in design view.

"apna" wrote:

> I think try this
>
> DoCmd.OpenForm "HC_labels", acSelection, ,
> "[forms]![frmPatients]![PatientID]=" & [PatientID]
>
>
> "fascal" <(E-Mail Removed)> wrote in message
> news:ACD1F85C-D464-4223-A09C-(E-Mail Removed)...
> > Hi,
> >
> > I have a command button on a form. The form brings up patient information
> > by a unique identifier called PatientID. The button calls open to preview
> > before printing a form a sheet of 30 labels. The problem, is that instead
> > of
> > bringing up just a sheet for that one patient, it brings up a sheet of 30
> > labels for every patient.
> >
> > any help would be appreciated. The code is below.
> >
> > Private Sub cmdHCPatientLabel_Click()
> >
> > DoCmd.OpenForm "HC_labels", acNormal, ,
> > "[forms]![frmPatients]![PatientID]=" & [PatientID]
> >
> >
> > End Sub

>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Unique Identifier Brent Microsoft Outlook Discussion 0 3rd Jul 2008 03:34 PM
Assigning unique identifier to unique authors =?Utf-8?B?Ymx1ZXNreQ==?= Microsoft Access Queries 5 3rd Aug 2007 10:12 PM
Unique Identifier ba.hons Microsoft C# .NET 4 31st Jan 2007 01:13 PM
Unique Identifier =?Utf-8?B?UmF5bW9uZG8=?= Microsoft Frontpage 2 17th Aug 2005 07:05 PM
Re: Unique Identifier Hugh O'Neill Microsoft Access Form Coding 0 11th Sep 2003 10:53 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:49 AM.