I have got every hostname stored in an array. I now want to add each hostname to my table but if the hostname is already in the table I want to update it instead.
Will I have to take the first element in load all the records in the table in into a recordset then loop through the entire recordset and check it against the first element in the array then do my if...then...else statement and then repeat the whole loop for the 2nd element in the array and repeat until the end of the array or is there a more efficient way?
Thanks!
Will I have to take the first element in load all the records in the table in into a recordset then loop through the entire recordset and check it against the first element in the array then do my if...then...else statement and then repeat the whole loop for the 2nd element in the array and repeat until the end of the array or is there a more efficient way?
Thanks!