PC Review


Reply
Thread Tools Rate Thread

Display first 3 characters in a field

 
 
Ricoy-Chicago
Guest
Posts: n/a
 
      8th Jan 2008
Using Access XP...
Admin. in the Mrktng dept. is going to track data using marketing codes
where the first 3 characters will be the marketing code and the last two the
current year. For example: ABC06, ABC07, ABC08, etc. however, when the staff
is going to enter the data in a form a drop down MUST show only ACD.

I created a table for the marketing codes information and linked to a field,
etc., etc. I have no problem with any of that. The problem is that when the
staff clicks on the drop down arrow they can see ABC08 instead of only ABC.

I indicated that it does not matter that staff can see ABC08 instead of only
ABCbut Admin. is adamant about it and it has to be only ABC.

I hope this make sense (as a problem to be solved, not the logic behind my
boss).

Thanks for any help.

 
Reply With Quote
 
 
 
 
nlburgess via AccessMonster.com
Guest
Posts: n/a
 
      8th Jan 2008
If your source for the drop down pulls from the table you created, change the
source of the drop down to select Left([mktCode],3)

Ricoy-Chicago wrote:
>Using Access XP...
>Admin. in the Mrktng dept. is going to track data using marketing codes
>where the first 3 characters will be the marketing code and the last two the
>current year. For example: ABC06, ABC07, ABC08, etc. however, when the staff
>is going to enter the data in a form a drop down MUST show only ACD.
>
>I created a table for the marketing codes information and linked to a field,
>etc., etc. I have no problem with any of that. The problem is that when the
>staff clicks on the drop down arrow they can see ABC08 instead of only ABC.
>
>I indicated that it does not matter that staff can see ABC08 instead of only
>ABCbut Admin. is adamant about it and it has to be only ABC.
>
>I hope this make sense (as a problem to be solved, not the logic behind my
>boss).
>
>Thanks for any help.


--
Message posted via AccessMonster.com
http://www.accessmonster.com/Uwe/For...ccess/200801/1

 
Reply With Quote
 
fredg
Guest
Posts: n/a
 
      8th Jan 2008
On Tue, 8 Jan 2008 12:52:01 -0800, Ricoy-Chicago wrote:

> Using Access XP...
> Admin. in the Mrktng dept. is going to track data using marketing codes
> where the first 3 characters will be the marketing code and the last two the
> current year. For example: ABC06, ABC07, ABC08, etc. however, when the staff
> is going to enter the data in a form a drop down MUST show only ACD.
>
> I created a table for the marketing codes information and linked to a field,
> etc., etc. I have no problem with any of that. The problem is that when the
> staff clicks on the drop down arrow they can see ABC08 instead of only ABC.
>
> I indicated that it does not matter that staff can see ABC08 instead of only
> ABCbut Admin. is adamant about it and it has to be only ABC.
>
> I hope this make sense (as a problem to be solved, not the logic behind my
> boss).
>
> Thanks for any help.


In whatever query you are using as the Combo rowsource, add a new
column:

CodeInfo:Left([FieldName],3)

Then set this column to be the one displayed, not the current column.

--
Fred
Please respond only to this newsgroup.
I do not reply to personal e-mail
 
Reply With Quote
 
Ricoy-Chicago
Guest
Posts: n/a
 
      8th Jan 2008
Thank you both... that's what I was looking for :-)

"fredg" wrote:

> On Tue, 8 Jan 2008 12:52:01 -0800, Ricoy-Chicago wrote:
>
> > Using Access XP...
> > Admin. in the Mrktng dept. is going to track data using marketing codes
> > where the first 3 characters will be the marketing code and the last two the
> > current year. For example: ABC06, ABC07, ABC08, etc. however, when the staff
> > is going to enter the data in a form a drop down MUST show only ACD.
> >
> > I created a table for the marketing codes information and linked to a field,
> > etc., etc. I have no problem with any of that. The problem is that when the
> > staff clicks on the drop down arrow they can see ABC08 instead of only ABC.
> >
> > I indicated that it does not matter that staff can see ABC08 instead of only
> > ABCbut Admin. is adamant about it and it has to be only ABC.
> >
> > I hope this make sense (as a problem to be solved, not the logic behind my
> > boss).
> >
> > Thanks for any help.

>
> In whatever query you are using as the Combo rowsource, add a new
> column:
>
> CodeInfo:Left([FieldName],3)
>
> Then set this column to be the one displayed, not the current column.
>
> --
> Fred
> Please respond only to this newsgroup.
> I do not reply to personal e-mail
>

 
Reply With Quote
 
Bob V
Guest
Posts: n/a
 
      8th Jan 2008
Hi Ricoy, the control source for a text box be something like this
=UCase(Left(Nz(DLookUp("[OwnerLastName]","tblOwnerInfo","[OwnerID] = " &
[tbOwnerID] & ""),""),3))
Regards Bob hope you can use this

"Ricoy-Chicago" <(E-Mail Removed)> wrote in message
news:541113E9-46FF-4F7D-B33F-(E-Mail Removed)...
> Using Access XP...
> Admin. in the Mrktng dept. is going to track data using marketing codes
> where the first 3 characters will be the marketing code and the last two
> the
> current year. For example: ABC06, ABC07, ABC08, etc. however, when the
> staff
> is going to enter the data in a form a drop down MUST show only ACD.
>
> I created a table for the marketing codes information and linked to a
> field,
> etc., etc. I have no problem with any of that. The problem is that when
> the
> staff clicks on the drop down arrow they can see ABC08 instead of only
> ABC.
>
> I indicated that it does not matter that staff can see ABC08 instead of
> only
> ABCbut Admin. is adamant about it and it has to be only ABC.
>
> I hope this make sense (as a problem to be solved, not the logic behind my
> boss).
>
> Thanks for any help.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Display only last 7 characters in a field =?Utf-8?B?TWljaGVsbGU=?= Microsoft Access Form Coding 12 18th Oct 2006 08:24 PM
Reports: memo field won't display more than 255 characters =?Utf-8?B?QmFzaW5nc3Rva2U=?= Microsoft Access Reports 1 22nd Jun 2006 01:48 PM
How to display a numeric field showing all 5 characters. =?Utf-8?B?aWJibQ==?= Microsoft Excel Worksheet Functions 2 28th Apr 2006 01:37 AM
display a field in certain characters =?Utf-8?B?aG5nbw==?= Microsoft Access 4 30th Aug 2005 12:37 PM
Display number of characters in the body field Andrea Microsoft Outlook Form Programming 1 6th Nov 2003 04:09 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 08:31 PM.