Control Source Problem

  • Thread starter Thread starter Sondra
  • Start date Start date
S

Sondra

I have the following Control Source and its giving me an
error can someone tell me where I have written it wrong???

= Right("CM020-"&Format([Year],2)&"-"&Format
([CM_Number],000))

Ultimately I want:

CM020-03-001
CM020-03-002
CM020-03-003
etc.

Thanks in advance.
..
 
I used your suggest and it just continues to error out.
-----Original Message-----
= "CM020-" & Format([Year],2) & "-" & Format ([CM_Number],000)


--
Ken Snell
<MS ACCESS MVP>

Sondra said:
I have the following Control Source and its giving me an
error can someone tell me where I have written it wrong???

= Right("CM020-"&Format([Year],2)&"-"&Format
([CM_Number],000))

Ultimately I want:

CM020-03-001
CM020-03-002
CM020-03-003
etc.

Thanks in advance.
.


.
 
Which error?

--
Ken Snell
<MS ACCESS MVP>

I used your suggest and it just continues to error out.
-----Original Message-----
= "CM020-" & Format([Year],2) & "-" & Format ([CM_Number],000)


--
Ken Snell
<MS ACCESS MVP>

Sondra said:
I have the following Control Source and its giving me an
error can someone tell me where I have written it wrong???

= Right("CM020-"&Format([Year],2)&"-"&Format
([CM_Number],000))

Ultimately I want:

CM020-03-001
CM020-03-002
CM020-03-003
etc.

Thanks in advance.
.


.
 
Noted that I didn't add all the correct " characters. Try this:

= "CM020-" & Format([Year], "00") & "-" & Format([CM_Number], "000")
--
Ken Snell
<MS ACCESS MVP>

I used your suggest and it just continues to error out.
-----Original Message-----
= "CM020-" & Format([Year],2) & "-" & Format ([CM_Number],000)


--
Ken Snell
<MS ACCESS MVP>

Sondra said:
I have the following Control Source and its giving me an
error can someone tell me where I have written it wrong???

= Right("CM020-"&Format([Year],2)&"-"&Format
([CM_Number],000))

Ultimately I want:

CM020-03-001
CM020-03-002
CM020-03-003
etc.

Thanks in advance.
.


.
 

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

Similar Threads

Control Source Error 7
Custom Numbering 1
preserving numbering in a SEQ after inserting a new field 3
Group by date on employeeID 4
Newbie Question 6
Formatting Problem 2
Excel Problem 2
counter function 2

Back
Top