J.Windebank
Registered User.
- Local time
- Today, 09:13
- Joined
- Apr 2, 2003
- Messages
- 37
Hi guys, this is my first post here, hope someone can understand my babbling and offer some advice 
OK, well I am setting up an Access 97 database at work, and have little to no training in the program, so most of my results end up being workarounds at best, so long as the database does as intended.
Now I will try and lay out the basics of this as simplistically as I can. I work for a market research company, and we measure free-to-air tv programs.
I need to add all of the TV data to the database, on a week by week basis, for each day of the week, and for each state we measure in (6).
Here is my table structure so far.
tblChannels [ChannelID (autonumber), ChannelName (text)]
tblMain [ID (autonumber), Round (text), ProgramID (long integer), Day (text), TimeFrameID (long integer), Time (long integer), StateID (long integer)]
tblPrograms [ProgramID (autonumber), ProgramName (text), ProgramCode (text), ChannelID (long integer)]
tblStates [StateID (autonumber), State (text)]
tblTimeFrame [TimeFrameID (autonumber), TimeFrame (text)]
tblTimes [TimeID (autonumber), Time (text)]
Now I have a form called frmAddPrograms that I use to add programs to the database, and it just adds the Program Name, the Code, and the Channel. This is fine.
My trouble begins with the main form, named frmTVCards.
Now I will try and explain how I want the form to work, what it does currently, and then will finally ask the questions I have.
When you first enter the form the cursor starts at "txtCOTRound" and you enter a four digit nuber that relates to the round being worked on (round = week number). From there you tab to the Day and drop down to choose, and then the same for state.
Each week there will be 42 seperate sets of records, one for each day (7), for each state (6), for each COT Round (week).
Then you would tab through Program Name, Timeframe, and Time which would loop as you added all of the appropriate tv programs for that day.
The little "+" button next to the program name opens that frm AddPrograms form to add any new programs.
Now the questions.
1) When I add a new entry, I would like it to be displayed straight away in the sub form. At the moment the sub form works on a query that gets all of the relevent info, and the query works when run on its own, but I do not know how to get it to auto update in the form, can anyone suggest a way to "refresh" the table?
2) Whenever I add a new entry, all of the fields are wiped blank again for a new entry. I understand that this is supposed to happen, but was wondering if there was some way I could get the COT Round, Day, and State info to always remain the same as the last record in the table? I think the only way would be a query to extract the info from the last record in the "tblMain" table, but then how do I get it to show in the form?
3) After adding a new program in the "frmAddPrograms" form, which is opened through the "frmTVCards" form, when I close it the combo box list does not update, what command can I use to refresh the combo box after closing the other form?
4) Finally, eventually I want to output all of this date into word. I am not really asking for help at this stage, as I have not even attempted it, but can anyone point me in the direction for tutorials/info on how to write data from Access to Word?
I hope I have made this all clear, and that someone can help me figure this out.
Thanks in advance for everyone who takes the time to read this.
Jordan Windebank
OK, well I am setting up an Access 97 database at work, and have little to no training in the program, so most of my results end up being workarounds at best, so long as the database does as intended.
Now I will try and lay out the basics of this as simplistically as I can. I work for a market research company, and we measure free-to-air tv programs.
I need to add all of the TV data to the database, on a week by week basis, for each day of the week, and for each state we measure in (6).
Here is my table structure so far.
tblChannels [ChannelID (autonumber), ChannelName (text)]
tblMain [ID (autonumber), Round (text), ProgramID (long integer), Day (text), TimeFrameID (long integer), Time (long integer), StateID (long integer)]
tblPrograms [ProgramID (autonumber), ProgramName (text), ProgramCode (text), ChannelID (long integer)]
tblStates [StateID (autonumber), State (text)]
tblTimeFrame [TimeFrameID (autonumber), TimeFrame (text)]
tblTimes [TimeID (autonumber), Time (text)]
Now I have a form called frmAddPrograms that I use to add programs to the database, and it just adds the Program Name, the Code, and the Channel. This is fine.
My trouble begins with the main form, named frmTVCards.
Now I will try and explain how I want the form to work, what it does currently, and then will finally ask the questions I have.
When you first enter the form the cursor starts at "txtCOTRound" and you enter a four digit nuber that relates to the round being worked on (round = week number). From there you tab to the Day and drop down to choose, and then the same for state.
Each week there will be 42 seperate sets of records, one for each day (7), for each state (6), for each COT Round (week).
Then you would tab through Program Name, Timeframe, and Time which would loop as you added all of the appropriate tv programs for that day.
The little "+" button next to the program name opens that frm AddPrograms form to add any new programs.
Now the questions.
1) When I add a new entry, I would like it to be displayed straight away in the sub form. At the moment the sub form works on a query that gets all of the relevent info, and the query works when run on its own, but I do not know how to get it to auto update in the form, can anyone suggest a way to "refresh" the table?
2) Whenever I add a new entry, all of the fields are wiped blank again for a new entry. I understand that this is supposed to happen, but was wondering if there was some way I could get the COT Round, Day, and State info to always remain the same as the last record in the table? I think the only way would be a query to extract the info from the last record in the "tblMain" table, but then how do I get it to show in the form?
3) After adding a new program in the "frmAddPrograms" form, which is opened through the "frmTVCards" form, when I close it the combo box list does not update, what command can I use to refresh the combo box after closing the other form?
4) Finally, eventually I want to output all of this date into word. I am not really asking for help at this stage, as I have not even attempted it, but can anyone point me in the direction for tutorials/info on how to write data from Access to Word?
I hope I have made this all clear, and that someone can help me figure this out.
Thanks in advance for everyone who takes the time to read this.
Jordan Windebank