473,378 Members | 1,479 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,378 software developers and data experts.

How to show 6 digits of serial number in report?

19
Hello,
I have a table in Microsoft Access with serial numbers field for production, this field contains 10 digits. I would like to show just 6 digits in report, example in table 0000123456 but in report just 123456 . Could you please show me how to do it. I would appriciate for your help.

Thanks
Jul 23 '09 #1
7 2522
Dormilich
8,658 Expert Mod 8TB
that depends on the programming language you use.

(and it would be easier to guess if you had it posted in the appropriate forum—the editors forum is related to writing articles)
Jul 23 '09 #2
Mai Le
19
This is Microft Access.
Jul 23 '09 #3
missinglinq
3,532 Expert 2GB
Add an unbound textbox to the form and in its Control Source enter

= Right([YourFieldName], 6)

where YourFieldName is the name of the field holding the data.

Welcome to Bytes!

Linq ;0)>
Jul 23 '09 #4
Mai Le
19
Thanks for your help. I tried but somehow it doesn't work. Here is attachment for review.

Thanks
Attached Files
File Type: zip 6digits.zip (13.3 KB, 103 views)
Jul 23 '09 #5
missinglinq
3,532 Expert 2GB
That's because you named your unbound textbox Sn, which is also the name of your field! Rename the textbox txtSn, then be sure that the control source is

=Right([Sn],6)

(Access will probably change it to =Right([txtSn],6) so you may need to take out the txt.)

Linq ;0)>
Jul 23 '09 #6
Mai Le
19
Thanks alot !!!
It's working.
Exellent !!!
Jul 23 '09 #7
missinglinq
3,532 Expert 2GB
Glad we could help!

Linq ;0)>
Jul 24 '09 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

15
by: tom | last post by:
Hi, How do I get the serial number of the harddisk in .NET? I want this to be the same number even if the user has reformatted, so I do not want the volume serial number. Thanx, t
3
by: Peter | last post by:
Dear all, Would you tell me how to solve the following two problems in an access file upon preparing report form: a) I have written an IIf function for a string field at the beginning of...
1
by: theyas | last post by:
I have a page that I get to by selecting the part number and serial number of an item in my database. The pages then generates a set of files. Some of these files have unique names (containing...
2
by: ad | last post by:
I have not any serial number in my table. But I want to show the serial number in my select result. Like: Select firstname, age from Employee: Jhon 38 Mary 40 Mimi 32 How to show :
3
by: Bayazee | last post by:
Hi, How can I get CPU Serial number , or motherboard serial number with python . I need an idetification of a computer .... ThanX --------------------------------------------------- iranian...
13
by: Rob | last post by:
Hi all, I am fairly new to python, but not programming and embedded. I am having an issue which I believe is related to the hardware, triggered by the software read I am doing in pySerial. I...
130
by: Daniel Manes | last post by:
I'm baffled. I have a column in a SQL Server Express database called "Longitude," which is a float. When I view the table in a DataGridView, some of the numbers, which only have two decimal places...
7
by: buddyr | last post by:
Hello, I am in microsoft access form - I want a field called serial number to have number display with 3 zeros before it. the serial number is always 5 digits. I have tried putting "00000000" in...
1
by: turtle | last post by:
I need to create a report or query that will show the last step completed in a process. Here are the details Part number serial no Discription ...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.