Hi.
Im so sorry but I have no clue what your saying?
Then you should be posting your questions in the "Getting Started" newsgroup
or "New Users" discussion forum, because it's assumed you're not a new user
and know your way around Access when you post in any of the other Access
newsgroups. The "Getting Started" newsgroup or "New Users" discussion forum
assumes all questioners are new users, so explanations are given
step-by-step because the questioner doesn't know his way around Access yet.
Our answers in the other newsgroups won't be step-by-step instructions that
you need to help you achieve what you want to do, because the other
newsgroups don't expect beginners unless explicitly informed of this fact in
the questioner's post. However, now that I know you're a new user, I'd be
happy to provide the step-by-step instructions.
Select the name of the macro in the Database Window. Select the Tools ->
Macro -> Convert Macros to Visual Basic menu, then press the "Convert"
button, and press the "OK" button when it's done. Select the Debug ->
Compile <DatabaseName> menu in the VB Editor to compile the code. Press
<ALT><F11> to return to the Access Window. Rename the macro to something
else, such as mcr_NewRecord_DeleteThis. Open your form in Design View and
go to the Form OnOpen event. Change:
mcr_NewRecord
To:
=mcr_NewRecord()
Open your form in Form View, whereupon the new VBA procedure will be used
instead of the macro. The error message should tell you why it can't move
to the new record when opening the form. If you don't understand the
message, or don't know how to fix it, please post the error message in your
next post, and we'll try to help you troubleshoot it.
Here is the message:
Macro Name: mcr_NewRecord
Condition: True
Action name: GoToRecord
Arguments: -1,,New,
That's equivalent to asking the mechanic to check the radiator fluid,
whereupon he unscrews the cap, pronounces "Yup. It's green," and replaces
the cap. ;-) That message tells you the current settings for your macro.
It doesn't tell you diddly squat about _why_ Access can't go to a new
record. That's why one should _never_ use macros, except for the AutoKeys
macro. All other macros have VBA procedure equivalents and have the
opportunity to include error handling and pause the code, which macros do
not. Now that you know exactly how to convert all the rest of your macros
to VBA code, I recommend you do so as soon as possible.
HTH.
Gunny
See
http://www.QBuilt.com for all your database needs.
See
http://www.Access.QBuilt.com for Microsoft Access tips and tutorials.
Blog:
http://DataDevilDog.BlogSpot.com
http://www.Access.QBuilt.com/html/expert_contributors2.html for contact
info.