Well, the question was: Is a data sheet a data sheet. - The very unsurprising answer is: Yes....but that wasn’t what this thread asked.
Well, the question was: Is a data sheet a data sheet. - The very unsurprising answer is: Yes....but that wasn’t what this thread asked.
the original question was.. is the table you open (to view its records) in datasheet form.Well, the question was: Is a data sheet a data sheet. - The very unsurprising answer is: Yes.
Table level events occur in the database engine (ACE), not in a displaying form. Therefore, DataMacros were introduced that can implement something like this. However, their overall introduction is not yet convincing.if i could trigger an event directly on the table
Yes. When you click the + button to the left, you get a subform control. The subform control does not provide a RowHeight property, but the form inside the subform control does. Therefore, the syntax is: Form.SubformControl.Form.RowHeight
View attachment 112807
There are just too many ways to build the reference, in the attached picture, you can see I'm using the last item in the Controls member, but I could use its name, I could also use any syntax for that, you can use bangs, dots, defaults, explicit, any way you like. The challenge will be managing those subforms, because they only become accessible when they're open, and their name is chosen by Access by default. In my case, they're called "Secundario0", "Secundario1"... by order of appearance.
After this demonstration, it's clear that table views use a Form object that can be automated. Another challenge here is giving them a code module, for example, in order to set the HasModule property of a form, it has to be in Design View and then be saved. How you manage will be interesting to see.
what you can do is add DblClick event on the PK and on its action, Open a Related Form.but not into the detail section of a continuous form.
I believe this is no longer true, based on the info of this post. The subdatasheet is only activated when you open the Table (we can now call it a Table form).I presume that most applications don't work with the table view. The data in a used form is not comming from the Table, but from somewhere else. (The table itself has a recordsource). The overhead issue with subdatasheets, does not apply (i think..). Unless you open the table to view the data.I know that the SubDatasheet property is generally switched off because it is a performance brake, because it is nothing other than constantly executing a query with links to other tables, even if their information is not needed at all. This then involves some overhead for display and keeping the display ready.
Your faith with all honor.
One of the very first points I learned when dealing with performance in queries is that SubDatasheets are a performance brake and should be switched off immediately. You read above: Every table access is a query, and the properties you set always have an effect, regardless of whether you notice them or not.
In my opinion, SubDatasheets are just a crutch for beginners, comparable to lookup fields in tables - nice for initial success, then extremely hindering when it comes to proper programming. Programming beginner aids beyond their intended purpose will then regularly run into problems.
... and at night there is no nuclear fusion in the sun - it is dark.A table isn't a table, it's a form.
A table isn't a table, it's a form.
I used a different property.screen.ActiveDatasheet.SubdatasheetHeight = 300
Works to make the height smaller, but you can't make it bigger then the original Height. It's interesting that you can get a subform into a datasheet form, but not into the detail section of a continuous form..
We all have opinions, as Doc says, we can not know for certain how things are setup from within MS Access' guts. The app exposes some of its features through COM and if we debug and see what's inside, we can do quite a bit. Now, we all have different reasons for hacking it, you might think there's no point in exposing bugs, miscoded or misprotected components, but I know some folks who would be interested in knowing these vulnerabilities.In my opinion
Now, we all have different reasons for hacking it, you might think there's no point in exposing bugs, miscoded or misprotected components, but I know some folks who would be interested in knowing these vulnerabilities.
We are all criminals then, Doc. For clicking debug after we get an errorWhich is precisely why the End User License Agreement strictly prohibits reverse engineering.
Thank you Edgar, your time and effort, it’s very much appreciated! The only problem with your solution is that the rowheight of the subform/subdatsheet is now (also) larger. I was looking for a way to make only the subformcontrol larger. Like with SubdatasheetHeight, but that is only usefull to make the control smaller. Another interesting question is, how did they get the subformcontrol in there, between the rows?I made a video to show how to do change row height for the subform and add some events to the main form.
I don't have a microphone to explain what is going on in detail, but if anyone has trouble replicating, let me know.
I used a different property.
We all have opinions, as Doc says, we can not know for certain how things are setup from within MS Access' guts. The app exposes some of its features through COM and if we debug and see what's inside, we can do quite a bit. Now, we all have different reasons for hacking it, you might think there's no point in exposing bugs, miscoded or misprotected components, but I know some folks who would be interested in knowing these vulnerabilities.
This is a formulated motivation and can be left as such. @MsAccessNL obviously has a different motivation.exposing bugs, miscoded or misprotected components
Hello Edgar,I made a video to show how to do change row height for the subform and add some events to the main form.
I don't have a microphone to explain what is going on in detail, but if anyone has trouble replicating, let me know.
I used a different property.
We all have opinions, as Doc says, we can not know for certain how things are setup from within MS Access' guts. The app exposes some of its features through COM and if we debug and see what's inside, we can do quite a bit. Now, we all have different reasons for hacking it, you might think there's no point in exposing bugs, miscoded or misprotected components, but I know some folks who would be interested in knowing these vulnerabilities.
We are all criminals then, Doc. For clicking debug after we get an error