I have a Do Until which i use for adding elements with primary key from number a to number b in a table.
A problem is that if some of the numbers allready excist in the table, it wont add them. There is no error with it, but it just dont do anything with the numbers that are allready there, and that is ok, but i want the user to be noticed when that is the case so he know theres something wrong here.
For every "Do" i could run a test of whether the number allready excist in the database. Is that the only way? and lets say 10 of the numbers are allready there. Would the message with "The number x is allready in your database" 10 times?
someone have any idea on how to do this?
A problem is that if some of the numbers allready excist in the table, it wont add them. There is no error with it, but it just dont do anything with the numbers that are allready there, and that is ok, but i want the user to be noticed when that is the case so he know theres something wrong here.
For every "Do" i could run a test of whether the number allready excist in the database. Is that the only way? and lets say 10 of the numbers are allready there. Would the message with "The number x is allready in your database" 10 times?
someone have any idea on how to do this?