Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Macros / November 2006

Tip: Looking for answers? Try searching our database.

how to save a macro

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
TechyTemp - 13 Nov 2006 19:38 GMT
I was given the following macro to use to enter explanations in a memo data
type box:   Me.MyMemoField.SelStart=Len(Me.MyMemoField.SelStart)      I
entered it exactly as was given to me.

When I go to enter data into that box I get the following response:

'The macro (or its macro group) doesn't exist, or the macro is new but
hasn't been saved.  Note that when you enter the macrogroupname.macroname
syntax in an argument, you must specify the name the macro's macro group was
last saved under.'

What do I need to do?
Douglas J. Steele - 13 Nov 2006 22:23 GMT
What you've got there is VBA code, not a macro.

I gather you're trying to type that expression into some event of your text
box. Rather than typing the expression there, select [Event Procedure] from
the pull-down list for the event property, then click on the ellipsis (...)
to the right of the box. The VB Editor should open up, with something like:

Private Sub TextboxName_EventName()

End Sub

Type your expression between those two lines.

(Note that depending on what expression you're using, there may be
parameters in the parentheses.)

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no private e-mails, please)

>I was given the following macro to use to enter explanations in a memo data
> type box:   Me.MyMemoField.SelStart=Len(Me.MyMemoField.SelStart)      I
[quoted text clipped - 9 lines]
>
> What do I need to do?
TechyTemp - 17 Nov 2006 21:26 GMT
I did as you suggested and I did get a "compile error: method or data member
not found".   The following was hilited ".MyMemoField" out of the expression
given me to enter.

I really don't know where to go from here.  Help.

> What you've got there is VBA code, not a macro.
>
[quoted text clipped - 25 lines]
> >
> > What do I need to do?
Douglas J. Steele - 18 Nov 2006 03:35 GMT
Do you have a text box named MyMemoField on your form? Odds are whoever gave
you that code expected you to substitute the actual name of your text box.

Signature

Doug Steele, Microsoft Access MVP
http://I.Am/DougSteele
(no e-mails, please!)

>I did as you suggested and I did get a "compile error: method or data
>member
[quoted text clipped - 40 lines]
>> >
>> > What do I need to do?
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.