I am almost done with a database i have been working on, there are just a few things i would like to "polish up"
First off, thanks to Pat and Jon K. most of my questions have already been answered - either by me asking or by searching through all the information already here.
The last couple issues i am having are these:
1) Limiting data entry in a subform. I have a form/subform based on a query that joins 2 tables (Invoices and Transactions). In this case the invoices table has a 1-many relationship with the transaction table. There can be any number of transactions per 1 invoice. These tables are related through "InvoiceID" What i want to do is limit the number of transactions per invoiceID to 10. I have seen a couple of examples in searching but cant get any of them to work, one was proposed by Rich...the other used DCount.
What is the best way to set up this code? Do i need to code this into a before update event? or is there a better place?
2) One of my reports is going to be multiple pages long, is there a way i can make it so preview report shows the LAST PAGE first, or shows only the last page? Keep in mind i do not want to change order of my records, just the pages.
3) Is there a way to limit the viewable results of queries/reports by how old they are? Like say i want to only view results from the last 60 days. However i do not want to exclude the earlier results because they are used in calculations/running totals, I just dont want to SEE them.
Thanks again for all your help, Even though Access is mostly just a hobby i have really learned alot over the last 4 years or so and I owe most of that to this forum and all of you. (Now onto understanding SQL and VBA better
)
First off, thanks to Pat and Jon K. most of my questions have already been answered - either by me asking or by searching through all the information already here.
The last couple issues i am having are these:
1) Limiting data entry in a subform. I have a form/subform based on a query that joins 2 tables (Invoices and Transactions). In this case the invoices table has a 1-many relationship with the transaction table. There can be any number of transactions per 1 invoice. These tables are related through "InvoiceID" What i want to do is limit the number of transactions per invoiceID to 10. I have seen a couple of examples in searching but cant get any of them to work, one was proposed by Rich...the other used DCount.
What is the best way to set up this code? Do i need to code this into a before update event? or is there a better place?
2) One of my reports is going to be multiple pages long, is there a way i can make it so preview report shows the LAST PAGE first, or shows only the last page? Keep in mind i do not want to change order of my records, just the pages.
3) Is there a way to limit the viewable results of queries/reports by how old they are? Like say i want to only view results from the last 60 days. However i do not want to exclude the earlier results because they are used in calculations/running totals, I just dont want to SEE them.
Thanks again for all your help, Even though Access is mostly just a hobby i have really learned alot over the last 4 years or so and I owe most of that to this forum and all of you. (Now onto understanding SQL and VBA better