Hi all i have a bit of a formatting problem, im using access:
I have a database filled with codes.
If i have for example :
I need to to be formated 'B22..' also if there is a string which is 'B222' i need it to show 'B222.' An needs to be a maximum of 5 characters long.. so in other words if the string doesnt make up to the 5 maximum characters i need to add a full stops till it reaches a 5 bytes string.
I know i can add
Is it an iif statement maybe.
How can i achieve this help much appriciated.
I hope this code works for you... I just wrote it and it is untested.
If Len(yourfieldhere.value) < 5 Then
Len(yourfieldhere.value) = strCount
5 - strCount = Dots
If Dots > 0 Then
Select Case Dots
yourfieldhere.value + "...." = yourfieldhere.value
yourfieldhere.value + "..." = yourfieldhere.value
yourfieldhere.value + ".." = yourfieldhere.value
yourfieldhere.value + "." = yourfieldhere.value
the aim is store once, not store multiple times
Remember... Optimize 'til you die!
Progaming environment: Access based on my own environment: DAO3.6/A97/A2000/A2003/A2007/A2010 VB based on my own environment: vb6 sp5 ASP based on my own environment: 5.6 VB-NET based on my own environment started 2007 SQL-2005 based on my own environment started 2008 MYLE YOUR PASSWORD IS JUST LIKE YOUR TOOTHBRUSH DON'T SHARE IT.
i think vba(visual basic for applications) is using vb code inside say access.. and ActiveX Data Objects (ADO) enables you to use the objects of say access inside a vb application... Correct me if me im wrong anyone one..