Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Newby, ..Membercode

Hallo,
i'm very new in Access..
ik ben een nieuweling in Access.

I would like to create a unique code by using the last name and a no.

Making this by using the fisst 4 letters of the Lastname and a following
number.
f.i.
Lastname Janssen will then be JANS1
Lastname Jansen - JANS2 and so on..

if the lastname is shorter then 4.

then only us the name and a following no.

f.i.

ES1


any help will be great.

gr.

Swingleft


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 587
Default Newby, ..Membercode

hi Swingleft,

oName = "Jans"
no = 5
If Len(oName) <= 4 Then oName2 = oName & no

--
isabelle


Le 2011-12-08 11:56, Swingleft a écrit :
Hallo,
i'm very new in Access..
ik ben een nieuweling in Access.

I would like to create a unique code by using the last name and a no.

Making this by using the fisst 4 letters of the Lastname and a following number.
f.i.
Lastname Janssen will then be JANS1
Lastname Jansen - JANS2 and so on..

if the lastname is shorter then 4.

then only us the name and a following no.

f.i.

ES1


any help will be great.

gr.

Swingleft


Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
membercode check Swingleft Excel Programming 2 November 9th 10 03:55 PM
Break Apart a Cell, please help a newby Newby Excel Discussion (Misc queries) 2 May 2nd 07 12:21 AM
Newby help Dave-Excel Excel Worksheet Functions 2 March 2nd 06 10:44 AM
Help a Newby Please!! Frenchie[_2_] Excel Programming 5 August 2nd 04 03:09 PM
Yet another Newby question about selecting TBA[_2_] Excel Programming 3 August 24th 03 02:04 AM


All times are GMT +1. The time now is 11:31 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"