B
Brian
I have a table in which there is a field called ContactID. It is a text
field and started with 0001. Whenever I added a contact I used the formula:
ContactID = CStr(CInt(DMax("str_ContactID", "dbo_tbl_Contacts")) + 1)
to get the "next" ContactID number. Unfortunately, we have reached
ContactID number 10000. Now the formula above always returns 10000 because
for some reason the text "9999" is greater than the text "10000". Needless
to say, adding Contacts has come to a screeching halt.
Does anyone know how to alter my formula above to get a ContactID above
10000? Note that this is an extensive database and changing existing
ContactID numbers is not practical, so somehow I have to go down the path
that has already been created.
Thanks!
Brian
field and started with 0001. Whenever I added a contact I used the formula:
ContactID = CStr(CInt(DMax("str_ContactID", "dbo_tbl_Contacts")) + 1)
to get the "next" ContactID number. Unfortunately, we have reached
ContactID number 10000. Now the formula above always returns 10000 because
for some reason the text "9999" is greater than the text "10000". Needless
to say, adding Contacts has come to a screeching halt.
Does anyone know how to alter my formula above to get a ContactID above
10000? Note that this is an extensive database and changing existing
ContactID numbers is not practical, so somehow I have to go down the path
that has already been created.
Thanks!
Brian