473,569 Members | 2,601 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Concantenate Numbers and Text in Query

1 New Member
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 9418
NeoPa
32,564 Recognized Expert Moderator MVP
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
1635
by: truedos | last post by:
hello, I have a text file that looks like this: text numbers text numbers text numbers .. ..
5
10636
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 do this with margins and padding on both the text and the image. Can someone put me out of my misery and tell/show me how to do this. TIA Brian...
2
1283
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 subsequent record. IE, if there are 1000 records in the table, I want to see all 1000 values and the numbers 1-to-1000. How do I write that...
2
1469
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 '%' + @search + '%' parameterized query:
0
780
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 :-D). One complaint he had about writing scripts in Notepad was that the keywords were not color coded (for obvious reasons: Notepad was not created...
2
3508
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
5088
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 indexed). dbo.maintable(ProfileID int pk) dbo.fts_table(ProfileID int pk fk, col1 xml, col2 xml, col3 xml) I want to perform a query that will return...
14
17044
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 result set usually under 100 rows for each query. I've read solutions that involve using the primary key field and a COUNT function. Those have not...
1
2304
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. If I put null instead of "n/m" it works nicely because it remains the number format, but I need to automatize my application, so I need to have "n/m"...
1
924
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 against the product numbers, using multiple products entered into a text box. So I want a form, with a text box, where a user could paste in 20 product...
0
7701
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7924
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
1
7677
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
6284
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
5514
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
5219
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3653
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3643
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1223
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.