473,394 Members | 1,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

Number field need * added before and after the number for barcode font

RC
I have a table with numbers in it. The table field is Long Integer
and the numbers are just consecutive 5 digit numbers, ie: 40000,
40001, 4002, 4003, etc. I place the table field (40001) in a text box
on a Report and then set the text box font to a barcode font (Code
39). BUT in order to read the barcode correctly the number in the
report (which produces the barcode) must have an asterisk before and
after the number, like, *40001*. I am creating and adding the numbers
to the table but I can't add them to a second field with asterisks
because I can't mix Text and Numbers. Any ideas?
Nov 13 '05 #1
5 3355
To output the number with an asterisk on each side:

1. Open the report in design view.

2. Right-click the text box and choose Properties

3. Set the ControlSource to:
="*" & [Field1] & "*"

4. Change the Name property of the text box as well (Other tab of Properties
box).

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"RC" <rc*********@yahoo.com> wrote in message
news:3c**************************@posting.google.c om...
I have a table with numbers in it. The table field is Long Integer
and the numbers are just consecutive 5 digit numbers, ie: 40000,
40001, 4002, 4003, etc. I place the table field (40001) in a text box
on a Report and then set the text box font to a barcode font (Code
39). BUT in order to read the barcode correctly the number in the
report (which produces the barcode) must have an asterisk before and
after the number, like, *40001*. I am creating and adding the numbers
to the table but I can't add them to a second field with asterisks
because I can't mix Text and Numbers. Any ideas?

Nov 13 '05 #2
RC
Problem solved. I used the Eval function to Evaluate the variable and
plugged the results of the Eval into a new variable that was declared
as String and then put that into a new column in the table where the
table field type was string.

rc*********@yahoo.com (RC) wrote in message news:<3c**************************@posting.google. com>...
I have a table with numbers in it. The table field is Long Integer
and the numbers are just consecutive 5 digit numbers, ie: 40000,
40001, 4002, 4003, etc. I place the table field (40001) in a text box
on a Report and then set the text box font to a barcode font (Code
39). BUT in order to read the barcode correctly the number in the
report (which produces the barcode) must have an asterisk before and
after the number, like, *40001*. I am creating and adding the numbers
to the table but I can't add them to a second field with asterisks
because I can't mix Text and Numbers. Any ideas?

Nov 13 '05 #3
rc*********@yahoo.com (RC) wrote in message news:<3c**************************@posting.google. com>...
I have a table with numbers in it. The table field is Long Integer
and the numbers are just consecutive 5 digit numbers, ie: 40000,
40001, 4002, 4003, etc. I place the table field (40001) in a text box
on a Report and then set the text box font to a barcode font (Code
39). BUT in order to read the barcode correctly the number in the
report (which produces the barcode) must have an asterisk before and
after the number, like, *40001*. I am creating and adding the numbers
to the table but I can't add them to a second field with asterisks
because I can't mix Text and Numbers. Any ideas?


how about putting an unbound textbox on your report and setting the
controlsource to "*" & [your_number_field] & "*"
Nov 13 '05 #4
RC
Thank you Allen and Pieter, I didn't check back quick enough before
wrote back with my "Eval" solution. I didn't know I could do that
with the control source. Your suggestion will be a much more elegant
solution. I won't have to clog up the table with an extra column of
data. Thanks for the lesson. RC

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message news:<40***********************@freenews.iinet.net .au>...
To output the number with an asterisk on each side:

1. Open the report in design view.

2. Right-click the text box and choose Properties

3. Set the ControlSource to:
="*" & [Field1] & "*"

4. Change the Name property of the text box as well (Other tab of Properties
box).

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"RC" <rc*********@yahoo.com> wrote in message
news:3c**************************@posting.google.c om...
I have a table with numbers in it. The table field is Long Integer
and the numbers are just consecutive 5 digit numbers, ie: 40000,
40001, 4002, 4003, etc. I place the table field (40001) in a text box
on a Report and then set the text box font to a barcode font (Code
39). BUT in order to read the barcode correctly the number in the
report (which produces the barcode) must have an asterisk before and
after the number, like, *40001*. I am creating and adding the numbers
to the table but I can't add them to a second field with asterisks
because I can't mix Text and Numbers. Any ideas?

Nov 13 '05 #5
RC
Thank you Allen and Pieter, I didn't check back quick enough before
wrote back with my "Eval" solution. I didn't know I could do that
with the control source. Your suggestion will be a much more elegant
solution. I won't have to clog up the table with an extra column of
data. Thanks for the lesson. RC

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message news:<40***********************@freenews.iinet.net .au>...
To output the number with an asterisk on each side:

1. Open the report in design view.

2. Right-click the text box and choose Properties

3. Set the ControlSource to:
="*" & [Field1] & "*"

4. Change the Name property of the text box as well (Other tab of Properties
box).

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"RC" <rc*********@yahoo.com> wrote in message
news:3c**************************@posting.google.c om...
I have a table with numbers in it. The table field is Long Integer
and the numbers are just consecutive 5 digit numbers, ie: 40000,
40001, 4002, 4003, etc. I place the table field (40001) in a text box
on a Report and then set the text box font to a barcode font (Code
39). BUT in order to read the barcode correctly the number in the
report (which produces the barcode) must have an asterisk before and
after the number, like, *40001*. I am creating and adding the numbers
to the table but I can't add them to a second field with asterisks
because I can't mix Text and Numbers. Any ideas?

Nov 13 '05 #6

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

Similar topics

13
by: Emanuele Calo' | last post by:
Hi, I've defined a CSS with this selector: #IUPBarCode{ font-family : "3 of 9 Barcode"; font-size: 30px; font-weight : normal; position: absolute; top: 150px; left: 22px; }
3
by: rt | last post by:
I hope this is the right news group to ask but if not I'm sure someone will correct me. I have a .NET application that uses 3 different 3 of 9 TrueType fonts. If I have a newly installed OS...
4
by: Chris | last post by:
Hi, I found this code that can solve a problem I have. It sends print direct to printer. Imports System Imports System.Text Imports System.Runtime.InteropServices ...
2
by: Breda Photo Fair | last post by:
I am looking voor a database software tool which automatically generates unique barcodes to each contact. I should be able to manage the contacts by reading the barcode. The tools will be used to...
1
by: Aaron Bronow | last post by:
I have an asp.net application which loads a Crystal Reports ReportDocument, passes in parameters for selecting data from the report's database connection, renders the report for previewing on the...
11
by: youngster94 | last post by:
Hey all, I've written a VB.Net app that creates picture badges complete with barcodes. The problem is that the barcode quality is not good enough to be read by scanners. I'm using the...
1
by: Mangler | last post by:
I dont know if this is possible or if someone has a better way to do this but here it is: I have a page where the user enters an rma#, lot#, and number of barcodes they need to print, here is...
0
by: =?Utf-8?B?QWJieQ==?= | last post by:
Can ne1 tell me what is the best way to handle barcode fonts in crystal report? I installed IDAutomationHC39M barcode font on my machine and used it in the report. when i used it it shows me the...
4
by: hemricc2 | last post by:
I have the following simple page. I need to select the BARCODE text field everytime the page refreshes. I know this is pretty basic, but I'm just starting with Javascript. Thanks for the help. ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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
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...
0
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
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...

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.