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

Parsing Employee Name field

My table contains single field for EmployeeName populated as LASTNAME, FIRSTNAME
In my report query qry_OptimizeIt1 I defined two new fields as Expr4: ParseFirstComp([OrderRepName]) and Expr2: ParseSecondComp([OrderRepName])
In my report, for text box RepName, my Control Source is =StrConv([Expr2] & " " & [Expr4],3) which changes the name to FirstName LastName,
My problem is that I end up with a comma after the LastName.
Can someone help me determine how to eliminate the comma?

Thanks,

Krazy (Bill) Kasper
Sep 15 '08 #1
2 1252
missinglinq
3,532 Expert 2GB
You need to modify the function that parses out your last name; it apparently adds a comma after the name is parsed. Just remove the code, which will probably be

& ","

It would be much easier to follow ypor code if you replaced [Expr2] and [Expr4] with more intuitive names like LName and FName.

Linq ;0)>
Sep 15 '08 #2
NeoPa
32,556 Expert Mod 16PB
This certainly appears to be a problem with your ParseFirstComp() function. As the comma already exists in the original data I suspect it is simply not being excluded. Your code would help here. A relevant part of the question.

Anyway, look in that function and change the length value you use in you Mid() line (I would guess) to one less.
Sep 16 '08 #3

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

Similar topics

0
by: milesd | last post by:
Hi, Rather new to MSXML4. I am parsing an XML data-stream over HTTP, and would like to know why I cannot parse XML nodes with multiple parameters. The XML and Code are below, BUT I would like...
5
by: LFM | last post by:
I have a table I'm importing from our SQL accounting database. The Employee Name is in one field. For the purpose of my needs, I need to extract the last name, first name and middle initial. ...
3
by: Terrence Chan | last post by:
I have try the below and the problem is my xmlstring is something like "<employee name="Joh"n"> strXML = Replace(strXML, "&", "&amp;") strXML = Replace(strXML, "<", "&lt;") strXML = Replace(strXML,...
7
by: wk6pack | last post by:
Hi, I would like to know how to parse the following xml string using vb.net? currxml=" <employee><address_2></address_2><assignments><assignment><assigned_bargaini...
5
by: msammart | last post by:
Hey, i have a payroll system and i'm tyring to have it so the user can select an option from the menu and then be able to change one of the employee's salaries based on the user ID input. ( data is...
3
by: jhhbr549 | last post by:
Can some help me with this. Please review this code for errors. I can not get it to complie. Here is my Code .. This is an abstract class that is used in conjuntion with 4 other classes.. ...
9
by: Jasper | last post by:
Hi, I have multiple data files which need parsing in realtime so high performance is *crucial*. I dont have a format definition, but from what I can see there is a hierarchy of data. Each...
0
petepell
by: petepell | last post by:
Hello all, I am developing an application in VB 2008 that works with a SQL2005 DB to store and manipulate employee data. In one section of the app I want to be able to show a treeview of the...
2
by: Zvi | last post by:
Hi All, Can someone tell me why id the following not working? I have a soap response envelope, for test purpose it's just a string and I create ElementTree from it. Then I try to find Response...
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...
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.