thanks to this nice KB i found this:
Me.subEingabeB.SetFocus
DoCmd.GoToRecord , , acNewRec
which definitely does the job, hurray! :)
thanks alot PH for your fast answers!
well...
I need to reference one subform of two (they both have the same underlying form) for the following command. I tried lot of styles :P ... :
DoCmd.GoToRecord acDataForm, Forms![subEingabeB], acNewRec
DoCmd.GoToRecord acDataForm, Forms![Startformular]![subEingabeB], acNewRec
...
what is...
How to copy data into a new record from one subform to another subform when both subs have the same form?
the names I entered for each subform on the main form are different, but they aren't accessible at runtime :(.
any ideas?
try to have these table fields on the form with the same (this is table field) name and probably hide it from user and color it red to see clearly in design that it's hidden.
So Your code should/could possible work then.
hope it helped ;)
Thanks it works very well!
Just for the other users here the corrected WORKING version.
----
Line #22 contains an error.
Change
file.Close
To
TheFile.Close
----
;)
so here's the corrected full version:
<code>
Sub ExportSomeData()
Dim fso As Object
Dim TheFile
Dim rstWrite As...
How I can write out a file which I have to setup in code?
I need some records save to a file in an own format.
Can I iterate through a resultset, write the text to a string (would be long) and save that string to a file? Or append/save to the file on every record?
tia
frobo
i got it to work by having a hidden field in the mainform, but now, when i use the modal form to let the user choose a value, the code still goes on, not waiting for the user input.
but I need the value in the ongoing code.
any idea?
tia
Well where is this constant used?
And my other question is:
How I can let the user choose from a dropdown on the modal form and use the value in my vba code on another form?
tia
frobo
hello together
how it's possible to open a form (popup, bound, so it sticks until the user closes it), let the user choose a value and then OK and have the chosen value used in the prior form?
tia
frobo
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.