![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
"I know I could manipulate the table source directly but I need to have the textbox afterupdate code to fire - I just need to automate entry into the form and all will be well" You say that the target form wouldn't be visible to the super user and I'm deducing that you don't want to manipulate the table data directly as you want to fire the text box AfterUpdate events one the invisible target form? Firstly I think I'm right in saying if you update a control in code it's AfterUpdate doesn't fire anyway so I don't think this approach is going to work for you. |
#12
| ||||
| ||||
|
|
Basically all I'm fundamentally asking for is how to move down a row and enter a figure. That's it. This is nothing to do with calculated fields or, and I have no idea where this one came from, "usings a field in a table for temporary storage". At no point did I say that. |
|
BTW is there something wrong with sharing this knowledge? Am I only allowed to know something as long as I'm not going to offend the Access Gods? |
|
And you say "it's not clear, just what nor why you are storing data". Come on Larry, after all my explanations I can only believe you're starting to troll me. |
|
As I've repeatedly said this is an alternate user scenario. If you don't want to help that's fine but please put aside the judgemental tone. I've seen threads here (entertaining ones mind) where people are ranting and raving at each other about how something "should" be done in Access. I'm not interested in that level of discussion. |
#13
| ||||||
| ||||||
|
|
"buckskin" <buckskin (AT) mailinator (DOT) com> wrote Basically all I'm fundamentally asking for is how to move down a row and enter a figure. That's it. This is nothing to do with calculated fields or, and I have no idea where this one came from, "usings a field in a table for temporary storage". At no point did I say that. No, you didn't say it -- you described it. A control on the Form that is bound to a Field in the Table is entered by one user, but automatically recalculated for another (and when that is done, will be automatically stored in the Table, overriding what the first user entered). If it were not, then it would not appear in the Report -- Reports do not 'get their data from Forms' but from a Record Source which is a Table, Query, or Recordset. |
|
BTW is there something wrong with sharing this knowledge? Am I only allowed to know something as long as I'm not going to offend the Access Gods? People here are advising you, as best they can from what you've described, but you have a 'way to do it' in mind and reject suggestions that will work... perhaps that's because you haven't explained what the AfterUpdate code does and why you need to do that in that particular manner. The AfterUpdate event does not fire, nor can you make it fire, when you set the value of the Control from code, but YES, of course, you can call the procedure and execute the same code. This has nothing to do with "not offending Access Gods" but just trying to understand what it really is that you want to do, and offering suggestions to accomplish it. |
|
And you say "it's not clear, just what nor why you are storing data". Come on Larry, after all my explanations I can only believe you're starting to troll me. I've answered tens of thousands of questions in Access newsgroups and have no interest in "trolling" anyone. And, I just told you something that "all your explanations" did not include, that appears to be important to what you want to accomplish -- that is, whatever is done in the AfterUpdate event code. |
|
As I've repeatedly said this is an alternate user scenario. If you don't want to help that's fine but please put aside the judgemental tone. I've seen threads here (entertaining ones mind) where people are ranting and raving at each other about how something "should" be done in Access. I'm not interested in that level of discussion. It's not my intent to try to engage you in a philosophical discussion on how things should or should not be done, but you should understand that there are good reasons for valid relational database design principles. |
|
I hope that your explanations are adequate for someone to help you... my guess is that Jon has given you the basis (perhaps with additional code in lieu of the AfterUpdate event code), or perhaps my suggestion of basing "SuperUsers" Report on a Query, but without your telling us WHAT you expect to do by executing the AfterUpdate code, it's not really possible for any of us to say. |
|
I apologize for the irritation that I've caused, which was not my intent. But, as my feeble attempts to assist do appear to irritate you, I suppose I should leave further responses to someone else who doesn't 'rub you the wrong way'. |
#14
| |||
| |||
|
|
"Jon Lewis" <jon.lewis (AT) cutthespambtinternet (DOT) com> wrote in message news:g8adnarxf5N7hwrTnZ2dnUVZ7omdnZ2d (AT) bt (DOT) com... "I know I could manipulate the table source directly but I need to have the textbox afterupdate code to fire - I just need to automate entry into the form and all will be well" You say that the target form wouldn't be visible to the super user and I'm deducing that you don't want to manipulate the table data directly as you want to fire the text box AfterUpdate events one the invisible target form? Firstly I think I'm right in saying if you update a control in code it's AfterUpdate doesn't fire anyway so I don't think this approach is going to work for you. It does. A control's Afterupdate code can be made to fire if you call the sub in question - I've done it previously and make use of it in another database. |
#15
| |||
| |||
|
|
... I have merely asked how to do something. That does not make me capricious or close-minded. |
#16
| |||
| |||
|
|
This is basically a macro I guess but I'm so rusty I can't quite think how to start. When my form opens focus is set to a textbox in the first row within a subform. I just want to calculate the difference between two other columns (also displayed on the subform) and then have that figure be automatically entered. This will be the same as if a person was entering the data (the afterupdate code would then run which is important). Then I want the return key to be pressed so that the focus shifts to the textbox in the next row. Then repeat til we hit the bottom and trap that error. Ultimately I want to set this in motion from a command button and the form will be opened and then shut invisibly. The reason for the automation is to quickly fill out these figures when we're in a hurry. Normally the user will do it line by line but this scenario needs to be supported. Any quick tips on how to proceed? thanks |
|
Now an auto-calculation can't make intelligent decisions about what the figures might or should be. However we can simply subtract Actual from the |
![]() |
| Thread Tools | |
| Display Modes | |
| |