travismallen
Programmer
I'm trying to write a program that creates locations using a counter for example:
Counter = 0
TempLocation = Me.section&"."&Counter
but I want it to check if the location has already been created. I suspect there's a built in function to check for duplicates and returns a true or false.
If there is a function what is it, and if not how can I make a for loop that goes through the table and compares the locations?
Lastly I need to put this a in a While loop or a Do While loop so I can increment the counter, but I don't know the syntax.
Thanks and sorry for the easy questions, man I wish Access used java instead...
___________________________
"I am what I am" - Popeye
Travis M. Allen
Counter = 0
TempLocation = Me.section&"."&Counter
but I want it to check if the location has already been created. I suspect there's a built in function to check for duplicates and returns a true or false.
If there is a function what is it, and if not how can I make a for loop that goes through the table and compares the locations?
Lastly I need to put this a in a While loop or a Do While loop so I can increment the counter, but I don't know the syntax.
Thanks and sorry for the easy questions, man I wish Access used java instead...
___________________________
"I am what I am" - Popeye
Travis M. Allen