curscascis
New member
- Local time
- Today, 07:35
- Joined
- Aug 22, 2013
- Messages
- 7
Hey guys I need some suggestions. I am new to the world of VBA and access but I've gotten a more than adequate grasp over the last two months. I currently need a way to check to see if a a field already exists. To be exact I have an access application that imports data from multiple sources and saves the file name of these imports into an import tracker table. The table has four fields, file name, Date Imported, Import Type, and Number of Records. I am writing some code that checks a Boolean given by a form. If the Boolean is true It skips over checking. If it is false It needs to check my import tracker file names to see if the file was already imported. If it was then it will skip over the file and the algorithm will check the next file given by an array. So I was wondering..How would I go about making it check if the file already exists in the table. I was thinking of turning the File Name Field into a primary key, since there will only ever be one File Name of every type. What are your thoughts? Thanks!