473,396 Members | 1,996 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,396 software developers and data experts.

Embeded Macros or Events

PhilOfWalton
1,430 Expert 1GB
I have been helping some people on this forum with their Access problems, and find some of them are using Embedded Macros as well as Event Procedures on their forms.

I have always used Event Procedures. In fact the only Macros I use are AutoExec & occasionally Autokeys.

I appreciate that Embedded macros may be easier to write, but for the finished product have they any advantages / disadvantages against Event Procedures?

What happens if you upsize your Db. Are there different problems with say SQL server or Silverlight and Web applications?

Hope this doesn't open up too big a can of worms, but I would be interested in the other experts' views.

Thanks

Phil
Sep 25 '16 #1
3 905
ADezii
8,834 Expert 8TB
I occasionally use an AutoExec Macro, and rarely, an Autokeys Macro. On every other occasion, I use Event Procedures.
Sep 25 '16 #2
PhilOfWalton
1,430 Expert 1GB
Thanks, I appreciate that, but I am trying to establish if there is any point in having Embedded Macros.

In the same way I have a pet hatred of lookup tables, and see no point in those either.

Phil
Sep 26 '16 #3
jforbes
1,107 Expert 1GB
I find it easiest to know as few languages as possible. So I try to stick with Visual Basic when it's available, and it's available a lot:
  • Visual Basic for Application - In pretty much all Office applications as well as a few others, including AutoCAD.
  • VB.NET - Winforms, ASP.NET, Webservices (WCF), WPF, COM.
  • VB Script - Basic Scripting as well as a language in quite a few ERP systems.
  • SQL CLR
I currently maintain two applications that have a common library with one library in VBA (Access) and another in VB.NET. Porting this code back and forth would be much more difficult if they weren't both in Visual Basic.


Specifically, for the selection between VBA or Macros for Event Procedures, I prefer all the code in one place where it is searchable and easily diffed.

I can't think of any reason that Macros would cause difficulty when upsizing since, you will still have a Front End Database where the Macros can execute just as they do now. Data Macros would need to be converted to Triggers, but that is an all around improvement.
Sep 26 '16 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Robin Tucker | last post by:
Hi people, Is it possible for me to handle events raised by an object which is embeded in a web browser control, from my VB.NET code? I am able to gain access to the object itself through the...
4
by: Landley | last post by:
Hello All, I am new to C# (and converting from VB.NET). 1. I am trying to create a class that has one method and one event. The method's sole purpose is to raise the event. 2. ... then...
24
by: ej1002 | last post by:
Hi I have developed a Windows Application(C# Windows Form) which will get the IFrame Source of the page it is navigating using Webbrowser Control. Now I want do this in ASP.Net web application(C#...
1
by: Earl Teigrob | last post by:
I have a DataGrid that needs to set many properites on its embeded controls in the ItemTemplate and EditItemTemplate Templates. I have a choice between using the inline <%# %> or the OnItemCreated...
6
by: Dominique | last post by:
Hi all, I'm using .NET v1.1 and the scenario I have is as follows... I have IE as an ActiveX control embedded in may C# App. I generate a HTML file dynamically and within the HTML file I embed a...
30
by: Burkhard | last post by:
Hi, I am new to C# (with long year experience in C++) and I am a bit confused by the language construct of events. What is it I can do with events that I cannot do with delegates? At the moment...
2
by: keithgell | last post by:
I needed to import large CSV files into Access, when requested by a command in a .Net interface. Because Access does not have a bulk insert command, and I already have vba macros in Access that...
27
by: Cephalobus_alienus | last post by:
Hello, I know that macros are evil, but I recently came across a problem that I couldn't figure out how to solve with templates. I wanted to create a set of singleton event objects, and wrote...
4
by: =?Utf-8?B?TWlrZQ==?= | last post by:
Just wondering if someone can help me out. I'm building a web app that uses UserControls for different forms etc. I have a few UserControls that are embeded and I want to be able to call/pass data...
2
by: davidratz | last post by:
I run Access 2000. We still have Access 97 resident on our server. We run all of this inside of a Citrix environment. I have a macro which runs a dozen or so queries and macros. At the end of the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
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,...

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.