473,406 Members | 2,769 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Open and eidt macro in code

How can I open a macro so it can be edited in code from a button click?
Assuming I can, will this be able to be done in an mde application.

dixie
Feb 15 '06 #1
9 2913
On Wed, 15 Feb 2006 12:16:19 +1100, "Dixie" <di***@dogmail.com> wrote:

There are probably better ways. What are you really trying to
accomplish?

-Tom.

How can I open a macro so it can be edited in code from a button click?
Assuming I can, will this be able to be done in an mde application.

dixie


Feb 15 '06 #2
To give end users the ability to open a macro in design view and add, remove
queries, lines in the macro, etc. Access would be by password protected
form.

dixie

"Tom van Stiphout" <no*************@cox.net> wrote in message
news:jn********************************@4ax.com...
On Wed, 15 Feb 2006 12:16:19 +1100, "Dixie" <di***@dogmail.com> wrote:

There are probably better ways. What are you really trying to
accomplish?

-Tom.

How can I open a macro so it can be edited in code from a button click?
Assuming I can, will this be able to be done in an mde application.

dixie

Feb 15 '06 #3
I suppose you could saveastext the macro, load the text into whatever
to edit it, save the changes, and loadfromtext the macro back.A
sophisticated and knowledgeable user would screw this up no more then
95% of the time. You could maybe improve this to 50% by munging the
text into a recordset (one line to each record) and using a continuous
form for the editing. But you can't saveastext in an mde TTBOMK.

BTW the whole notion sounds totally wacko-nuts to me. Better prepare an
escape route in case a van and guys/gals in white coats drives up in
front of your place.

Feb 15 '06 #4
I saw that van go by not 15 minutes ago. I thought they'd come for the
nutcase next door. You mean they're looking for me. :-)

"Lyle Fairfield" <ly***********@aim.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I suppose you could saveastext the macro, load the text into whatever
to edit it, save the changes, and loadfromtext the macro back.A
sophisticated and knowledgeable user would screw this up no more then
95% of the time. You could maybe improve this to 50% by munging the
text into a recordset (one line to each record) and using a continuous
form for the editing. But you can't saveastext in an mde TTBOMK.

BTW the whole notion sounds totally wacko-nuts to me. Better prepare an
escape route in case a van and guys/gals in white coats drives up in
front of your place.

Feb 15 '06 #5
On Wed, 15 Feb 2006 15:44:53 +1100, "Dixie" <di***@dogmail.com> wrote:

You still didn't say what you're really trying to accomplish, or
better what those macros would be used for.

If your users are smart enough to be able to edit macros, give them
access to the macro design view. Of course this precludes MDE.
If not, create an interface for them to accomplish the higher-level
task.

-Tom.
To give end users the ability to open a macro in design view and add, remove
queries, lines in the macro, etc. Access would be by password protected
form.

dixie

"Tom van Stiphout" <no*************@cox.net> wrote in message
news:jn********************************@4ax.com.. .
On Wed, 15 Feb 2006 12:16:19 +1100, "Dixie" <di***@dogmail.com> wrote:

There are probably better ways. What are you really trying to
accomplish?

-Tom.

How can I open a macro so it can be edited in code from a button click?
Assuming I can, will this be able to be done in an mde application.

dixie


Feb 15 '06 #6
That is what I wanted to do - give them access to the design view, but it is
an mde, so I pbviously can't do that. It is not all users, there is one
admin at each site who would be able to do this, hence the idea of a
password. I think I have gone cold on the idea anyway, because it is
probably too much access for the site anyway. Thanks for your help Tom, you
have told me what I need to know anyway.

dixie.

"Tom van Stiphout" <no*************@cox.net> wrote in message
news:rf********************************@4ax.com...
On Wed, 15 Feb 2006 15:44:53 +1100, "Dixie" <di***@dogmail.com> wrote:

You still didn't say what you're really trying to accomplish, or
better what those macros would be used for.

If your users are smart enough to be able to edit macros, give them
access to the macro design view. Of course this precludes MDE.
If not, create an interface for them to accomplish the higher-level
task.

-Tom.
To give end users the ability to open a macro in design view and add,
remove
queries, lines in the macro, etc. Access would be by password protected
form.

dixie

"Tom van Stiphout" <no*************@cox.net> wrote in message
news:jn********************************@4ax.com. ..
On Wed, 15 Feb 2006 12:16:19 +1100, "Dixie" <di***@dogmail.com> wrote:

There are probably better ways. What are you really trying to
accomplish?

-Tom.
How can I open a macro so it can be edited in code from a button click?
Assuming I can, will this be able to be done in an mde application.

dixie

Feb 15 '06 #7
"Dixie" <di***@dogmail.com> wrote in
news:43******@duster.adelaide.on.net:
That is what I wanted to do - give them access to the design view,
but it is an mde, so I pbviously can't do that. It is not all
users, there is one admin at each site who would be able to do
this, hence the idea of a password. I think I have gone cold on
the idea anyway, because it is probably too much access for the
site anyway. Thanks for your help Tom, you have told me what I
need to know anyway.


Tell us what your macro does, and then we can give you a code-based
equivalent that will be dynamic, and obviate any need for the users
to edit the design of the macro or code.

--
David W. Fenton http://www.dfenton.com/
usenet at dfenton dot com http://www.dfenton.com/DFA/
Feb 16 '06 #8
Ted
I think what the guys are saying Dixie, is that perhaps it would be
better to create a form for the users to select options, then run VBA
code that would perform the functions and build a dynamic SQL string
that would perform the commands selected.
I use the capability to perform complex searches of data. The user
selects several fields to search in, each field can be "Like", "Exact
Match", or "Starts With" or "Ends With" and the sort orders (Ascending
or Descending). A lot of code when you create it, but it works really
fast and the users like the flexability of selecting one or multiple
fields to search in.
Use the power of VBA!

Feb 16 '06 #9
Thanks Ted, I appreciate what you are saying. I have decided at this stage,
not to do this anyway, but if I do, I will do as you say. Granting access to
people at that level is a little dangerous. Thanks to all those who pointed
out the lack of wisdom in doing this.

dixie

"Ted" <be*****@gmail.com> wrote in message
news:11**********************@g14g2000cwa.googlegr oups.com...
I think what the guys are saying Dixie, is that perhaps it would be
better to create a form for the users to select options, then run VBA
code that would perform the functions and build a dynamic SQL string
that would perform the commands selected.
I use the capability to perform complex searches of data. The user
selects several fields to search in, each field can be "Like", "Exact
Match", or "Starts With" or "Ends With" and the sort orders (Ascending
or Descending). A lot of code when you create it, but it works really
fast and the users like the flexability of selecting one or multiple
fields to search in.
Use the power of VBA!

Feb 16 '06 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Lize | last post by:
Hi, I'm writing an ASP application to open an excel workbook, then run a macro stored in the excel file, which produces outputs that will be displayed back onto my ASP application. Now the...
5
by: Mike Cooper | last post by:
I have downloaded this from Allen Brownes access web page. Created a txt file from it then loaded it as a macro in my db. I cannot get it to run nor can I figure where to insert the name of the db...
4
by: Corepaul | last post by:
I am working in Windows 2000 and Access 2000 and am a rookie in Access. Coding merrily along, I stop periodically to test that everything works. After adding a small amount of code to several...
1
by: sixsoccer | last post by:
I posted this last week, and did not receive a response. I thought I would try one more time. Any help would be much appreciated. Thanks Bill I have three databases running, all with a...
1
by: ollyculverhouse | last post by:
Hi, I have a custom menubar which lets users jump to useful forms in my database. For example if I first open a form called 'Add Individual' then another called 'Add Firm', if i try opening...
3
by: AFKAFB | last post by:
Hi I've a database where i want a form to open when the db is opened. The code i've written does not call activate the form when the db is opened Option Compare Database Public open_db()
2
by: Bob Alston | last post by:
Any straightforward way to open a form with multiple subforms, where the main form and all subforms are opened in readonly status? If I run docmd.openform.......,acreadonly the main form is...
2
by: kevcar40 | last post by:
Hi is it posible to check if another database is open? i have several datasbase the first is a dbase where the local data is maintained on closing the database the table is exported to a holding...
4
by: mld01s | last post by:
Hi all!! I need help, I have been stuck for a few days on this one. I am trying to open an excel table from a command button in Access. The excel table has an auto_open macro, that is supposed to...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.