![]() |
Sergey Kornilov admin 5/14/2004 |
Glenn, select ID, 'L1304'+String(5-Len(Cstr(ID)),' ') as FullID,... From [TableName]
|
S
|
surfermac 5/15/2004 |
Will this SQL statement also enable you to add? |
![]() |
Sergey Kornilov admin 5/19/2004 |
You don't have to worry about adding because you use autonumber field and MS Access will increment your key field automatically. |
|
500110 5/20/2004 |
I've tried every which way to make the SQL query adjustments. If you have a minute, would you look at the current query and let me know how to fit in your new quote. The ID number is "LPO number" |
![]() |
Sergey Kornilov admin 5/20/2004 |
Glenn, select [LPO number], 'L1304'+String(5-Len(Cstr([LPO number])),' ') as FullID, [Date], [Location/Program], [Contractor Name], [Amount], [Center Code], [Account], [Employee Name] From [LPO LOG]
|
|
500111 5/20/2004 |
Almost there. I now have a new column called FullID (I sort of see where you are going with this). But all the records in this field now only say "L1304" and are not picking up the LPO number after. Hmmm..... |
![]() |
Sergey Kornilov admin 5/20/2004 |
Glenn, select [LPO number], 'L1304'+String(5-Len(Cstr([LPO number])),'0')+CStr([LPO number]) as FullID, [Date], [Location/Program], [Contractor Name], [Amount], [Center Code], [Account], [Employee Name] From [LPO LOG] |
|
500112 5/21/2004 |
Your query will come in very helpfull for future Intranet applications. |