Well...I figured it out, but its real messy. How would you like me to let you know. I'm still tweaking it.
The first thing I had to do was create a new field (datatype TEXT) on your main record table.
I had to create two more tables used in lookups for your form based on the query.
They were:
Field1 1
Field2 January
Field1 2
Field2 February
so forth....all datatypes were text with the Field 1 as a primary key.
Did a second lookup table just like that for years.
Field1: 00
Field2: 2000
Field1: 01
Field2: 2001
Secondly...I created an update query to update that new field to the value of your MainTable DATE field.
Now the fun part, putting those on the form....
Put on two unbound combo boxes....ControlSource for the first is the first lookup table...ControlSource for the second is the second lookup table.
Create another unbound textbox(call it MONTHTEXTCHOICE) on your form, set its value to =[Combobox1]&"/"
Create yet another unbound textbox on your form (call it YEARTEXTCHOICE) set it value to =[Combobox2]
Leave them visable for now so you can see what this is doing..
Now for the query itself.....
Put on the new field that you will create using the update query, the TEXTDATE
Also put in your field list (the top row, yes) these....
Left([TEXTDATE,2)
as the criteria for this put =Forms![QueriedFormName]![MONTHTEXTCHOICE]
Left(TEXTDATE,3)
as the criteria (Under OR!)=Forms![QueriedFormName]![MONTHTEXTCHOICE]
Right(TEXTDATE,2)
as the criteria (under the equals not the OR) put
=Forms![QueriedFormName]![YEARTEXTCHOICE]
Put a button on your form to run the query after making your choices in the combo boxes.
You get to figure out the error handling yourself man,
MY GOD! I just tried the whole thing out and IT WORKS! What a pain, but you had a big one on your hands!
Email me and tell me your thoughts. If you can't get it from all this ...then I'll email you the "quickie"database I made it in.
[This message has been edited by jwindon (edited 08-24-2001).]