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

Update VBA within Forms with 1 single update

We have sent out 300 CDs with our yearly DB on it. Problem is there are 2 places within 2 different forms that we have a button that uses VBA to load an Excel spreadsheet depending on data and options. Both peices of VBA has the wrong path for the spreadsheets. We bundle Access run-time 2003 for those that doens't have Access. Some, out of the 300, has Access 2003 or 2007. I need a way to create an update, can use VBS, VBA within another DB or a different way I haven't thought of to fix these mistakes. Create an update that they can download and run to fix, so needs to be some what small (our current DB are 37 MB) as some of thes folks still us dial-up. What ideas does someone have that a mild beginner to pull of. Thanks for all the help in advance.
Jul 18 '08 #1
6 1386
JustJim
407 Expert 256MB
We have sent out 300 CDs with our yearly DB on it. Problem is there are 2 places within 2 different forms that we have a button that uses VBA to load an Excel spreadsheet depending on data and options. Both peices of VBA has the wrong path for the spreadsheets. We bundle Access run-time 2003 for those that doens't have Access. Some, out of the 300, has Access 2003 or 2007. I need a way to create an update, can use VBS, VBA within another DB or a different way I haven't thought of to fix these mistakes. Create an update that they can download and run to fix, so needs to be some what small (our current DB are 37 MB) as some of thes folks still us dial-up. What ideas does someone have that a mild beginner to pull of. Thanks for all the help in advance.
You're probably going to have to depend on some Access proficiency from your users. The easiest way is to create a new, empty Access application, import the two forms into them, fix their code and re-distribute this application with just two forms in it. The users will have to receive this little application and import the corrected forms into the original application.

The other option is to distribute a "repair" application that will open up to a form with a button on it that runs code to find the original application and export the new forms/code to it. This could be complex to develop and test.

Sadly, my experience is that, no matter how clear, concise and foolproof your instructions are, if you ask any 300 people to follow them, you're going to get 15, 30, 50 or more who mess it up.

Why not just fix the application and re-distribute the whole thing?

Jim
Jul 19 '08 #2
Agreed, some will mess it up and then complain to the VP.
I kind-of thought of the repair idea but I was attempting to read the code and use the replaceline built in function or something like that. I don’t understand the export the new form and it does sound complex and most likely something beyond me at this point.
Some of these folks well have already updated contact info., pricing and the like. So if I re-send, I would need to import all of their data from the many tables. I realize I didn’t put that into my previous posting, sorry.
Is it possible to open another DB, then attached an object to the code within that form? Thanks for replying.
Jul 20 '08 #3
JustJim
407 Expert 256MB
Agreed, some will mess it up and then complain to the VP.
I kind-of thought of the repair idea but I was attempting to read the code and use the replaceline built in function or something like that. I don’t understand the export the new form and it does sound complex and most likely something beyond me at this point.
Some of these folks well have already updated contact info., pricing and the like. So if I re-send, I would need to import all of their data from the many tables. I realize I didn’t put that into my previous posting, sorry.
Is it possible to open another DB, then attached an object to the code within that form? Thanks for replying.
I really don't know what your best solution is. It doesn't help now but in the future you might be best distributing two databases a sort of local front end/back end system where "your" stuff is separate from "their" stuff. I'll have a think and try to get back to you tomorrow.

Jim
Jul 20 '08 #4
JustJim
407 Expert 256MB
I really don't know what your best solution is. It doesn't help now but in the future you might be best distributing two databases a sort of local front end/back end system where "your" stuff is separate from "their" stuff. I'll have a think and try to get back to you tomorrow.

Jim
Having been on a site visit today and being re-acquainted with the type of users we've got to put up with... I still think that the best bet is for you to distribute an "update" database application (either by CD like your first distribution, or make it available for download from a website) containing just the two forms with their corrected code.

(by the way, this is all about an incorrect path, could you not tell the users to put the spreadsheets into the "incorrect path"?)

You then provide detailed instructions (do the recipients of this distribution have local IT guys that could help?) on how to import the corrected forms into their original application and provide a help phone number or e-mail address if they get into trouble.

Then you get down on your knees and pray, burn incense, sacrifice goats (your first-born son if you don't like him all that much), etc, etc.

Users, meh!

Jim

(Fair dinkum, this morning I said to a user "You do 'A' then you do 'B' then you do 'C'". She said "OK, I do 'A' then I do 'C' then I do 'B'. I (calmly) said, "No, you do 'A' then 'B' then 'C'. "Ahh, I get it", she said, " I do 'A' then 'C' then 'B'". I edited the form to put an 'A', a 'B' and a 'C' in front of the labels, wrote it down again and left! I don't get paid enough for this!)

Jim
Jul 21 '08 #5
The 2 DB front/end back/end idea, assuming I understand, might be something to review for next year.
I can't beleive I am going to do this, but I created a very small installer that will create if needed the wrong path and copy the files from the install point into there. But, also includes an un-installer, and the installer has a seperate appID.
This is after some testing to see your previous point of how complex this is.
This also changes next years plan of just an update, meaning a couple of *.jpg that are within a form... since I created the org. path problem and I can't just fix form easily to replace the images.. I will be sending out another CD next year.
Jul 21 '08 #6
JustJim
407 Expert 256MB
The 2 DB front/end back/end idea, assuming I understand, might be something to review for next year.
I can't beleive I am going to do this, but I created a very small installer that will create if needed the wrong path and copy the files from the install point into there. But, also includes an un-installer, and the installer has a seperate appID.
This is after some testing to see your previous point of how complex this is.
This also changes next years plan of just an update, meaning a couple of *.jpg that are within a form... since I created the org. path problem and I can't just fix form easily to replace the images.. I will be sending out another CD next year.
The two part system uses two mdb files (or mde if you go that way). One (front end) contains all the operations parts like forms, reports, the code/queries that drive them and any tables that contain data that you will change (for example a table of names/contacts. The other (back end) contains tables of data that the operators can change locally (but using the forms etc from the front end). That way if you make any changes, you send them a whole new front end, they delete the old front end (losing no data) and keep on going with the new front end.

All the best.
Jul 22 '08 #7

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

Similar topics

2
by: Richard Cornford | last post by:
Anyone who has taken a look at the online FAQ today may have noticed that I have updated it. The majority of the changes are the updating of broken links and the implementation of that extensive...
5
by: Klemens | last post by:
I get SQL30090 reason 18 by trying to do an insert in a federated table and an update in a local table in one transaction Do I have to change some settings to get done or ist this not possible by...
5
by: Alastair Anderson | last post by:
I have created a very simple form with which I would like to update a single value in a single row of a database as a proof of concept. The relevant parts of the form are a DBWebTextBox (which...
1
by: Gilz | last post by:
Hi I was wondering if anyone could help i have picked this database up from a designer who has now left the company. The code is a couple of years old. On click of a button it open a...
30
by: Charles Law | last post by:
Here's one that should probably have the sub-heading "I'm sure I asked this once before, but ...". Two users are both looking at the same data, from a database. One user changes the data and...
5
by: Stephen Plotnick | last post by:
I'm very new to VB.NET 2003 Here is what I have accomplished: MainSelectForm - Selects an item In a public class I pass a DataViewRow to ItemInformation1 Form ItemInformation2 Form
7
by: John J. Hughes II | last post by:
I have a DataGridView with a TextBoxColumn. I setting the data source to a List<stringvalue in a static class. The list is filled from a background thread. So far all is fine and it works...
2
by: Constantine AI | last post by:
Hi i have this code that Adds data into a Purchase Order Header, then displays the PONumber in a Message Box and finally Updates the PONo within the Order made which can be many records. The code i...
4
by: Constantine AI | last post by:
I am trying to code a SAVE button which will automatically change numerous rows of data within a table. I have created the appropriate query and checked it works when the form is open. However the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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
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...

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.