473,508 Members | 2,428 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Make a single label

Using the Label Wezard you can easily make labels for all the records
in the table, but is there a way to make just one.

I have a form that shows the data from a single recordset and on that
form i have a button that i need to be able to link to a label for just
that records data.

How can you get the ID for that record to be passed to the label report
so that only that one is shown.

Also, i don't know if it is possible, but is there a way to allow the
user to select the label to print (i.e. where on the page the label
will print) so as to save paper?

Aug 3 '06 #1
1 2054
chris_huh wrote:
Using the Label Wezard you can easily make labels for all the records
in the table, but is there a way to make just one.

I have a form that shows the data from a single recordset and on that
form i have a button that i need to be able to link to a label for
just that records data.

How can you get the ID for that record to be passed to the label
report so that only that one is shown.

Also, i don't know if it is possible, but is there a way to allow the
user to select the label to print (i.e. where on the page the label
will print) so as to save paper?
You use the optional Where argument of the OpenReport method to filter the
report to just the record you want.

DoCmd.OpenReport "reportName",,,"SomeField = SomeValue"

You can create a query that is a union of your table and a dummy table that
contains matching fields to your table (all empty) and one additional field with
an incrementing number. It should have one less rows than you have labels per
sheet. You set up the query so the blank records from the dummy table are
sorted to the top. Then applying additional criteria on the numeric field you
can control how many blank rows the query contains. If you apply criteria to
return three blank rows the real data will start on the fourth label etc..

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
Aug 3 '06 #2

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

Similar topics

1
1369
by: DD | last post by:
As the user will not have access to the database, i want them to be able to click a button and open the create a new label,based on a default report i will have saved in the database. Can anyone...
8
14029
by: Susan Bricker | last post by:
Is there a way to change the background color of command buttons? I know that I saw some VBA code somewhere that showed how to do this. I think it involved making the button transparent and then...
3
4515
by: Fred | last post by:
hi, can i somehow force IE to not split the text of my labels on multiple lines (they r in a datagrid) thanks
13
1718
by: Lighting_dragon | last post by:
I try to make an array of label as this. Dim ArrLabel(10) as System.Windows.Forms.Label For i =0 to 10 ArrLabel(i) = New System.Windows.Forms.Label ArrLabel(i).Left=25 ArrLabel(i).Top=25*i...
16
11497
by: Miguel Dias Moura | last post by:
Hello, i have 5 panels in an ASP.net / VB page. The panel 1 is visible the other 4 are NOT visible. I also have 5 images: image 1, image 2, ..., image5. When i click one of the images,...
3
1892
by: PaulH13 | last post by:
Hi, I have a pipe delimited flat file database of students that I mail out certificates to. I wrote a label preparation script which basically passes through the file and prepares a mailing...
8
30975
by: Alexey Smirnov | last post by:
How to make bold part of the text in a Windows.Forms.Label? Thank you.
1
2235
by: mlshoats | last post by:
Hello I am trying to make a log to track questions i answer on little hardware problems. I got most of it working but I am very new to programming anything and just started picking up things. I am...
1
1771
by: Siegfried Heintze | last post by:
The following code below is single threaded. When I click the start button, it hogs the message pump so none of the UI works. How can I convert this to make it multi-threaded so I can continue to...
0
7133
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7336
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7405
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7066
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7504
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
4724
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3198
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1568
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
773
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.