Combining Intials and Date to make an ID

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am running a query for a project database i am creating. The columns run as
follows: Project Name, Project Manager, and Bid Date. This is what i what i
started JobNo: Left([Project Manager],3)+left([Project Name],3)+Year([Bid
Date]). Right now i am getting an error, what am i doing wrong?
 
I think that this is what you are looking for

Left([Project Manager],3) & left([Project Name],3) & Year([Bid
Date])
 
There are a couple of possibilities but not know what the error is, or what
version of Access you are using, I will take a stab with one of them.

You are using the "+" Operator as a concatenation operator. This will work
in VBA but Jet is attempting to add the fields together to come up with a
sum. You need to use the correct cocatenation operator, which is the
ampersand "&"

Your calculated field should look like this:
JobNo: Left([Project Manager],3) & Left([Project Name],3) & Year([BidDate])
 
You welcome, have a good weekend
--
If I answered your question, please mark it as an answer. That way, it will
stay saved for a longer time, so other can benefit from it.

Good luck



Andy said:
Thanks guys, that helped alot

Andy said:
I am running a query for a project database i am creating. The columns run as
follows: Project Name, Project Manager, and Bid Date. This is what i what i
started JobNo: Left([Project Manager],3)+left([Project Name],3)+Year([Bid
Date]). Right now i am getting an error, what am i doing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top