HI. I wonder if you can help. I'm creating a filing system database for box files of invoices. For my table 'tblINVOICES', I have the following fields:
Name Datatype Description
FILE REF: Number The file box number
PERIOD: Text - lookup The financial year (eg. 2008-09)
OPENED: Text - lookup File opened on the start of the financial year (eg. 01/04/2008)
CLOSED: Text - lookup File closed on the end of the financial year (eg. 31/03/2009)
INCLUDES: Number First invoice number in the current box
to: Number Last invoice in the current box.
Now as the financial year data will always be consistent, I have chosen a lookup for PERIOD,OPENED, and CLOSED. This is called 'tblPERIODS'. This table has the following fields and records..
PERIOD: Start Date: End Date:
2008-09 01/04/2008 31/03/2009
2009-10 01/04/2009 31/03/2010
2010-11 01/04/2010 31/03/2011 and so on.
So far this sounds ok, but I'm having problems with the my form, 'frmINVOICES' as I have all the fields from 'tblINVOICES' in there, but I'm trying to set a combo box on 'PERIOD:' which should populate the other two fields - 'OPENED:' and 'CLOSED:'. Eg. I select 2008-09 in 'PERIOD:' and "01/04/2008" should appear in 'OPENED:' etc. but I can't get it to work that way.
Am I going about this in the right way for data normalisation or should I be storing the data differently ? Do I just need one field in the 'tblINVOICES' for the combo box for instance ?
Any help is appreciated thanks.
Name Datatype Description
FILE REF: Number The file box number
PERIOD: Text - lookup The financial year (eg. 2008-09)
OPENED: Text - lookup File opened on the start of the financial year (eg. 01/04/2008)
CLOSED: Text - lookup File closed on the end of the financial year (eg. 31/03/2009)
INCLUDES: Number First invoice number in the current box
to: Number Last invoice in the current box.
Now as the financial year data will always be consistent, I have chosen a lookup for PERIOD,OPENED, and CLOSED. This is called 'tblPERIODS'. This table has the following fields and records..
PERIOD: Start Date: End Date:
2008-09 01/04/2008 31/03/2009
2009-10 01/04/2009 31/03/2010
2010-11 01/04/2010 31/03/2011 and so on.
So far this sounds ok, but I'm having problems with the my form, 'frmINVOICES' as I have all the fields from 'tblINVOICES' in there, but I'm trying to set a combo box on 'PERIOD:' which should populate the other two fields - 'OPENED:' and 'CLOSED:'. Eg. I select 2008-09 in 'PERIOD:' and "01/04/2008" should appear in 'OPENED:' etc. but I can't get it to work that way.
Am I going about this in the right way for data normalisation or should I be storing the data differently ? Do I just need one field in the 'tblINVOICES' for the combo box for instance ?
Any help is appreciated thanks.