T
TonyWilliams via AccessMonster.com
I have 3 tables called tblmonth, tblcompany and tblhivalue.
tblmonth has a date field txtmonth
tblcompany has a text field txtcompany
tblhivalue has a date field txtmonth and a text field txtcompany.
All the date fields are formatted mmmm yyyy
tblhivalue also includes a number of other fields which are a mixture of text
and number fields let’s say, txtnbr1,txtnbr2, txtnbr3, txttext1, txttext2,
txttext3.
The records for tblhivalue look like this:
txtmonth txtcompany txtnbr1 txtnbr2 txtnbr3 txttext1
txttext2 txttext3.
June 2009 ABC Ltd 1 46 54 abl
UK part
June 2009 ABC Ltd 2 54 45 abl
Non UK sole
June 2009 ABC Ltd 3 32 64
hybrid Non UK part
June 2009 XYZ Ltd 1 13 51 abl
UK sole
June 2009 CDE Ltd 1 21 34 abl
UK sole
September 2009 ABC Ltd 1 45 44 hybrid
Non UK part
September 2009 ABC Ltd 2 23 23 abl
UK sole
September 2009 XYZ Ltd 1 12 45 abl
UK sole
September 2009 XYZ Ltd 2 54 21 hybrid
Non UK sole
September 2009 CDE Ltd 1 32 12 abl
UK part
Txtnbr indicates the transaction number for that company in that month so eg
ABC Ltd had 3 transactions in June 2009 and 2 in September 2009.
I want to create a form like this:
Main form txtmonth from tblmonth
Subform1 based on tblhivalue with txtcompany from drop down list with a
record source tblcompany and saving the value to txtcompany tblhivalue,
linked to main form by txtmonth
Subform of Subform1 based on tblhivalue with txtnbr1 txtnbr2 txtnbr3
txttext1 txttext2 txttext3 from tblhivalue, linked to Subform1 by
txtcompany (and txtmonth?) so that this sub forms shows all the records for
that company for that month.
I have tried to do this as it seemed reasonably straight forward but
subform1 scrolls through all the transactions for the month for each company
whereas I only want Subform1 to scroll through the a single company record
for each month and the second subform to scroll through the transactions for
that company for that month.
Sorry this is so long but I hope I've explained my problem.
Can anyone help?
Thanks in anticipation.
Tony
tblmonth has a date field txtmonth
tblcompany has a text field txtcompany
tblhivalue has a date field txtmonth and a text field txtcompany.
All the date fields are formatted mmmm yyyy
tblhivalue also includes a number of other fields which are a mixture of text
and number fields let’s say, txtnbr1,txtnbr2, txtnbr3, txttext1, txttext2,
txttext3.
The records for tblhivalue look like this:
txtmonth txtcompany txtnbr1 txtnbr2 txtnbr3 txttext1
txttext2 txttext3.
June 2009 ABC Ltd 1 46 54 abl
UK part
June 2009 ABC Ltd 2 54 45 abl
Non UK sole
June 2009 ABC Ltd 3 32 64
hybrid Non UK part
June 2009 XYZ Ltd 1 13 51 abl
UK sole
June 2009 CDE Ltd 1 21 34 abl
UK sole
September 2009 ABC Ltd 1 45 44 hybrid
Non UK part
September 2009 ABC Ltd 2 23 23 abl
UK sole
September 2009 XYZ Ltd 1 12 45 abl
UK sole
September 2009 XYZ Ltd 2 54 21 hybrid
Non UK sole
September 2009 CDE Ltd 1 32 12 abl
UK part
Txtnbr indicates the transaction number for that company in that month so eg
ABC Ltd had 3 transactions in June 2009 and 2 in September 2009.
I want to create a form like this:
Main form txtmonth from tblmonth
Subform1 based on tblhivalue with txtcompany from drop down list with a
record source tblcompany and saving the value to txtcompany tblhivalue,
linked to main form by txtmonth
Subform of Subform1 based on tblhivalue with txtnbr1 txtnbr2 txtnbr3
txttext1 txttext2 txttext3 from tblhivalue, linked to Subform1 by
txtcompany (and txtmonth?) so that this sub forms shows all the records for
that company for that month.
I have tried to do this as it seemed reasonably straight forward but
subform1 scrolls through all the transactions for the month for each company
whereas I only want Subform1 to scroll through the a single company record
for each month and the second subform to scroll through the transactions for
that company for that month.
Sorry this is so long but I hope I've explained my problem.
Can anyone help?
Thanks in anticipation.
Tony