Range search

jchar

New member
Local time
Today, 08:23
Joined
Feb 20, 2013
Messages
5
I am going to try and not ramble here but I want to give as much info as possible to help out any nice posters that can help me.
I have a database designed to record documents contained within a physical box. Because of the number of documents, each having it's own document number, I am limited by my boss to have the contents entered as a range of document numbers instead of entering them as there own individual records. Because of this I am limiting each physical box to only one type of document. So, I need a solution to do a user search for a document based on its type and within the range of documents contained in that box. For instance, "box 1" would contain a document type of "docType A" only and within the box the start range number field is "docNumberStart" of 100. Then we have another field of "docNumberEnd" of 199. A user needs to be able to use a form that would ask the document type and then a document number, say 150. I need to have the query to search the boxes based on the type first then see where that document number falls within the range entered for the box. This needs to query two tables already set up (cannot change much in them). Table 1: boxID (primary), boxNumber(no duplicates), docType(linked to Table 2), docNumberStart, docNumberEnd Table 2: docTypeID (primary), docType(no duplicates). Well, I hope that makes sense and someone can help. I do have some VB experience and have used it for some other coding in the database but I am a novice. Thanks for any assistance.
 
Thanks StarGrabber. I just opened the file and it certainly works like I need it to. I'll modify it for my use. THANKS!:)
 
Your download modified very easily for my use. I am so grateful. I next need to figure out how not to have overlapping ranges entered for the same document type. I'll get to work on that but any further ideas you may have would be great.
 
StarGrabber, any way to do this search and show multiple results? Like a find next but show in a datasheet or something? I opened my mouth to my boss about issues like users having the ability to enter the same document ranges in another box (100 to 200 in one and 125 to 150 in another) and if that does happen how to show multiple hits on a search, like a find next. My boss kind of slammed me in a meeting and thought I should ask one of our two IT for help, they don't do programming it’s a different field and they are way to busy. It wasn't a good day for me. Some don't understand the difference between excel and access, no fault of theirs they just don’t have the experience. That may give you an idea of my troubles. I am wondering if I can send you what I have privately somehow? I don't really want to post it all.
 

Users who are viewing this thread

Back
Top Bottom