T
tonybury via AccessMonster.com
I've been searching the forums for a while now and cannot seem to find
anything on this. I am working with the MAX statement in SQL. I am using this
to increment my shipto addresses by adding a letter after the number.
example: Customer H12345 would have a first shipto address of H12345A until
it reaches Z.
Problem:
I am now in need of having more than 26 shipto addresses.
Addressing the Issue:
I am attempting to just add another letter onto the end of the shipto address.
example: H12345AA
I was hoping the max sql statement would notice the extra letter in the list
but it is seeing Z as the max still. I am hoping there is an easier way of
attacking this than what I am thinking of.
I am getting to the point of dumping the data into a result set or something
then working through them with a loop. Although I think this is inefficient
and am trying to find a better way.
Any suggestions out there??
Regards,
Tony
anything on this. I am working with the MAX statement in SQL. I am using this
to increment my shipto addresses by adding a letter after the number.
example: Customer H12345 would have a first shipto address of H12345A until
it reaches Z.
Problem:
I am now in need of having more than 26 shipto addresses.
Addressing the Issue:
I am attempting to just add another letter onto the end of the shipto address.
example: H12345AA
I was hoping the max sql statement would notice the extra letter in the list
but it is seeing Z as the max still. I am hoping there is an easier way of
attacking this than what I am thinking of.
I am getting to the point of dumping the data into a result set or something
then working through them with a loop. Although I think this is inefficient
and am trying to find a better way.
Any suggestions out there??
Regards,
Tony