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

Concantenate Numbers and Text in Query

I have a database for Employees and I have the employee ID prefixes in different format in combobox for which they will be given according to the project. For example: I have few employees under Transportation project and they are given the Prefix of "LSB" and for construction project "TDN" and the four digit employee ID No is given manually starting from 0001 (Indexed-Yes (No Duplicates). On the query form I have created a new column as Employee Project ID Number and I need to concantenate Project ID Prefix and Project Number to get a result "LSB0001" or "TDN0002" and so on and so forth. I did a formula for Project ID Number: [Project ID Prefix] & Format([Project ID No],"0000"), but I am not getting the result I am expecting. Please help. Thank you
Dec 6 '21 #1
1 9408
NeoPa
32,556 Expert Mod 16PB
Hi Jerry.

Welcome to Bytes.com :-)

Have a look through Item Numbering Within a Group first. This should give you absolutely everything you need. If you do find yourself needing more help though then let us know and we'll do what we can for you.
Dec 6 '21 #2

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

Similar topics

7
by: truedos | last post by:
hello, I have a text file that looks like this: text numbers text numbers text numbers .. ..
5
by: KiwiBrian | last post by:
I wish to place an image of a word of text in the middle of a sentence, but need to adjust the vertical position of the image so that it looks inline with the text. I have tried unsuccesfully to...
2
by: MLH | last post by:
I have a table (tblCR) with primary key . is a natural key. I would like a select query to list all field values and number them in an adjacent field, starting with 1, incrementing by 1 each...
2
by: Howard | last post by:
How do I do this with parameterized query? without parameterized query: string search = "hello world search"; search = search.Replace(" ", " AND "); SELECT * FROM TABLE1 WHERE TEXT LIKE '%' +...
0
by: jy836 | last post by:
I am working on an application for a programmer (he uses HTML, JavaScript, Perl, and so on...). I won't be distributing this app, so absolute perfection is not required (though it would be nice...
2
by: LineVoltageHalogen | last post by:
Can anyone tell me if you can display line numbers in the query window of SQL 2005 Management Studio and if so how do I go about doing it? Thanks a bunch. TFD
8
by: Sham | last post by:
I am trying to perform the following query on a table that has been indexed using Full Text Search. The table contains multiple columns than have been indexed. (Below, all xml columns are...
14
by: chadh | last post by:
I have two select queries that need to have a column of line numbers on them. The numbers need to simply be 1 through however many rows there are in the result set. With the data I'm using the...
1
doma23
by: doma23 | last post by:
I have a field in a query that contains numbers and text (text field): C/R: IIf(<=0;"n/m";/) I need to export this query to Excel in a number format, so I can easily manipulate the data later....
1
by: BlackEyedPea | last post by:
I am virtually new to access, I'm creating something to help the business through a project. I have a table and queries containing thousands of products. I want to be able to apply a filter...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
1
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...
0
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...

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.