473,287 Members | 1,709 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,287 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 9387
NeoPa
32,554 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
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: Aftab Ahmad | last post by:
So, I have written a code for a cmd called "Send WhatsApp Message" to open and send WhatsApp messaage. The code is given below. Dim IE As Object Set IE =...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: marcoviolo | last post by:
Dear all, I would like to implement on my worksheet an vlookup dynamic , that consider a change of pivot excel via win32com, from an external excel (without open it) and save the new file into a...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

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.