B
brett
Hi all,
I'm pretty new to vb so I was hoping someone could help me out:
I have a table "Tempnum" that contains a number for each computer in our
inventory. Our code structure is as follows: ex DL102001 (DLxxyyzz)
DL= Company initials (its always constant)
10= Location (10 is LA, 20 is AZ, 30 is WA etc)
20= Department (20 is "service", 30 "testing" etc)
01= Number of computers (01,02,03)
The problem is i always have to look at the table and sort to the next
number in the sequence. Can someone help me out with a code/querey where i
enter the Company (Default "DL), location (string), department (string) and
it autogenterates the next number in the sequence?
I imagine its just a process of using "if,then" and the "mid" function but i
dont know the sytax. Please help me.
Thank You!
I'm pretty new to vb so I was hoping someone could help me out:
I have a table "Tempnum" that contains a number for each computer in our
inventory. Our code structure is as follows: ex DL102001 (DLxxyyzz)
DL= Company initials (its always constant)
10= Location (10 is LA, 20 is AZ, 30 is WA etc)
20= Department (20 is "service", 30 "testing" etc)
01= Number of computers (01,02,03)
The problem is i always have to look at the table and sort to the next
number in the sequence. Can someone help me out with a code/querey where i
enter the Company (Default "DL), location (string), department (string) and
it autogenterates the next number in the sequence?
I imagine its just a process of using "if,then" and the "mid" function but i
dont know the sytax. Please help me.
Thank You!