Hi,
I'm designing a database but it is turning into a bit of a state.
I Understand that my approach is probably poor but i am fairly new to Access. and realln need some advice/help
All other programs i have written have used inputs from list and combo boxes to wirte to a table. This is the first that reqires me to manipulate data already stored in a fixed sized datasheet.
I have two tables: tblMainProgressList and tblLog
The database is used to check the status of different 'line numbers' in a construction project. like a time line; when all boxes have been ticked, the project is complete!
the different Status's have been named STN1,STN2,STN3.. etc (Station1,2,3..) This will enable the program to be migrated to a different project by simply changing it's name instead of digging deep into and changing lots of code.
So far, when i click any STN tickbox, the reletive STNDate will be assigned with the current date. and likewise removed if the STN is unticked. (all from the Afterupdate event of the subform)
I have managed this with a large bunch of udate querys in SQL. However, this is just a prototype; the final design will have nearly 30 different stations! This means a huge amount of update querys that will probably make the operation of the program very slow.
surely there's a better method to handle this?
(i'm all ears
)
In a similar way, each time a STN is ticked, a reletive field (STN1Val, STN2Val...etc) is given a load value (percentage of project completion). A TOTAL field adds all STNVals to produce the total percentage complete.
Now, This all works (although the coding will probably be laughed at).
but my next taks is to send the data to a log each time it is updated:
So- for example . if STN1 is ticked on line-20000
i would like the last record in tblLog to store the data:
| Line No | Name | Date/Time | Total Load |
| line-20000 | PIDNoRev | 06.11.06 12.00 | XX |
where name is the name of the station that was ticked.
I really need some advice on how to single out the STN that i was ticked last, and write it to the name field in tblLog . If this is solved i could work out the rest.
Also any help on my update query issue will be greatly appreciated..
I have attached the database to make all this a bit clearer (hopefully)
Many thanks, Jamie
I'm designing a database but it is turning into a bit of a state.
I Understand that my approach is probably poor but i am fairly new to Access. and realln need some advice/help
All other programs i have written have used inputs from list and combo boxes to wirte to a table. This is the first that reqires me to manipulate data already stored in a fixed sized datasheet.
I have two tables: tblMainProgressList and tblLog
The database is used to check the status of different 'line numbers' in a construction project. like a time line; when all boxes have been ticked, the project is complete!
the different Status's have been named STN1,STN2,STN3.. etc (Station1,2,3..) This will enable the program to be migrated to a different project by simply changing it's name instead of digging deep into and changing lots of code.
So far, when i click any STN tickbox, the reletive STNDate will be assigned with the current date. and likewise removed if the STN is unticked. (all from the Afterupdate event of the subform)
I have managed this with a large bunch of udate querys in SQL. However, this is just a prototype; the final design will have nearly 30 different stations! This means a huge amount of update querys that will probably make the operation of the program very slow.
surely there's a better method to handle this?
In a similar way, each time a STN is ticked, a reletive field (STN1Val, STN2Val...etc) is given a load value (percentage of project completion). A TOTAL field adds all STNVals to produce the total percentage complete.
Now, This all works (although the coding will probably be laughed at).
but my next taks is to send the data to a log each time it is updated:
So- for example . if STN1 is ticked on line-20000
i would like the last record in tblLog to store the data:
| Line No | Name | Date/Time | Total Load |
| line-20000 | PIDNoRev | 06.11.06 12.00 | XX |
where name is the name of the station that was ticked.
I really need some advice on how to single out the STN that i was ticked last, and write it to the name field in tblLog . If this is solved i could work out the rest.
Also any help on my update query issue will be greatly appreciated..
I have attached the database to make all this a bit clearer (hopefully)
Many thanks, Jamie
Attachments
Last edited: