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

How to concatenate 2 fields

Hi All, have a question I hope someone can help me out with. I have a
file from our financial application here at work that creates
invoices. In it, it pulls data from our SQL Server 2000 database and
using XML, creates text file invoices. Question I have is this. One
of our fields is an ID field called Timekeeper. It's a unique 4 digit
number assigned to every person. What I want to do is create a new
field that will take a -0- and add it to the Timekeeper field.
Example: 01710. How can I concatenate 2 fields in XML where one is a
hardcoded value and one is a database field??

Thanks!
jim

Aug 1 '07 #1
2 3550
jr********@michaelbest.com wrote:
How can I concatenate 2 fields in XML where one is a
hardcoded value and one is a database field??
Using what tools? XML is just a data syntax. You're talking about a
programming task, which means you need to pick a programming language
(Java, C, XSLT stylesheets, XQuery or whatever query language you're
already using to retrieve the information and render it as XML ...)

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
Aug 1 '07 #2
On Aug 1, 9:09 am, Joseph Kesselman <keshlam-nos...@comcast.net>
wrote:
jrheltm...@michaelbest.com wrote:
How can I concatenate 2 fields in XML where one is a
hardcoded value and one is a database field??

Using what tools? XML is just a data syntax. You're talking about a
programming task, which means you need to pick a programming language
(Java, C, XSLT stylesheets, XQuery or whatever query language you're
already using to retrieve the information and render it as XML ...)

--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
I guess I'd be using XSLT stylesheets....Sorry about my ignorance with
this, I just thought I could open the file up in text pad and start
keying away....Anyway, below is where I believe it's pulling the
Timekeeper field from my datasource....

</xsl:choose>
<xsl:text>|</xsl:text>
<xsl:value-of select="tk_id"/> <!-- TIMEKEEPER_ID -->
<xsl:text>|</xsl:text>

Aug 1 '07 #3

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

Similar topics

8
by: Dixie | last post by:
I have the results of a query to send to a mailmerge with Word 2000. The query produces say 6 to 8 records, where only 1 of the fields is different from record to record. I can only have one...
2
by: Kevin | last post by:
Hello, How do I concatenate two fields in the same table... For example, I have two tables, first one is called familynametable that has a familyID and familyname field. This table is connected...
2
by: Rico | last post by:
Hello, I'm wondering if there is a way to concatenate two fields or a field and a string value in a single field in a view? Where in Access I might write; & " (m3)" as TotalVolume is...
1
by: Kermit Piper | last post by:
Hello, I have a validation script for upc codes which is currently working for values that are entered into one text box. I've been asked to break up the text box into 3 separate fields to...
4
by: jpr | last post by:
hello, I have a form with four fields: Fname, Lname, DOB and txtresult. Examples: JOHN, SMITH, 03/19/2006. The first three are bound to a table while the txtresult is unbound. I would...
2
by: exapplerep | last post by:
I've seen how to use VBA code to concatenate two fields into a third by using an expression in the "After Update" property in fields 1 & 2. field3 = field1 + field2 The above code would go...
4
by: Dan | last post by:
Hi all, I am creating a search table where the keywords field is made up of several text fields and this is causing me some problems. I can concatentate the text ok but i can't seem to concatenate...
10
by: Aaron Hoffman | last post by:
Hello, I'm hoping someone might be able to offer some guidance to my problem. I have one query in MS Access which consists of 2 tables joined by a SEQUENCE_ID. By joining the two tables I am...
3
by: GazK | last post by:
I am hoping someone can steer me towards an elegant solution to a simple problem. I have a query result which returns an array of details about a physical building, including its address. The...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.