21. januar 2008 - 14:52Der er
11 kommentarer og 1 løsning
At fange første record når man skifter til et nyt faneblad
Jeg har en formular med nogle faneblade. Jeg kan godt fange, at jeg skifter til et nyt faneblad (_click og _change), men jeg har brug for at fange om den record man automatisk står på er tom eller ej.
Hvis det er en tom/ny record skal man nemlig ikke kunne klikke sig videre, hvis det er en eksisterende record kan man klikke videre og se detaljerede oplysning osv.
Jeg har prøvet med me.name, men det giver (kun) formularen.
Oh yes, it works :-) but it's not good enough (only for a demo)
But it is impossible to get what field I'm actually in? I mean, the cursor IS in the field, I know the form, I know the Tab.Value so how do I get the field itself?
Yes, your solution works if the record is empty and it works if I change to another tab.
But I have 2 reasons why I want to know this: 1) I like to learn ;) so I can use this lesson somewhere else, and 2) I like to make it easy for my users. So if they opens the formular and are standing at the right record (not empty) from the beginning, then they can just pres the button and go to the next formula. As it is now they'll have to click! somewhere in the record and then use the button.
So my question is: how do I know which field on the tab is the cursor located at? And I think this will be nice for me to know i a lot of other situations as well.
terry, I can see my explanations are confusing, sorry. And I can see that my problem has changed as part of it is solved and then I have a new way of seeing the problem, well that's part of the learningprocess ;)
So I something that works allthough I would like it to work a little bit different. Let's close this quation and again, thanks for your help :)
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.