Accessing Google Calendar Events with MS Access Database - vba

I wrote an access database several years ago that used VBA to pull events from my Google calendar and present them on a report. It worked great for a couple of years but then Google must have made a change and it stopped working. I didn't have time to figure it out at the time so I let it go but now I would like to see if I can get my app working again. I've been Googling all morning trying to figure this out but I'm just not finding anything that's helpful. I've looked thru the Google API website but it doesn't address VBA so I'm wondering if it's no longer supported???
So my question: is it still possible to retrieve Google calendar data from MS Access using VBA? If so, can anyone point me towards resources that explain how to do it?
Thanks for any help,
Chris

You should probably post the code you have. Also, consider recording a Macro in Excel, and modify it slightly to work in Access. The Macro Recorder can generate a lot of code for you (actually, you will probably end up with too much code). You can't record a Macro using Access, but the Excel object model and the Access object model are very similar.

Related

Creating a working copy of an old Access 2010 database

I am tasked with fixing some bugs that an access 2010 database, written 10 or so years ago, has. The database has been functioning but has a few bugs in report generation that need to be fixed (ie: bugs are not impeding overall functionality).
Since I am relatively new to access 2010, I wanted to create a working copy of the entire database, VBA and all, so that I could get into the VBA code and figure out what is causing the bugs without accidentally sending some of the automatic emails or changing pertinent information in the data. I have tried saving the database with a new name, copying it in the folder and pasting elsewhere, and creating a backup and saving that elsewhere.
Each attempt yields the same issue: the VBA project not being readable. It gives the following message when I open any copy:
if included picture doesn't load: tl/dr: database cant be opened because VBA project cant be read, if "ok" is clicked vba project will be deleted..I have searched high and low, asked everyone that has used the database, nobody knows how to fix the issue and I do not feel comfortable changing anything in the live copy.
Any assistance would be greatly appreciated. Thank you in advance.
One option you might try is to create a new blank database file and attempt to import all of the database objects from a copy of your target database into the new database file using the import wizard. If that's successful it won't be an exact replica of the previous database with regards to settings, but will include all of the database objects/code at least.

Editing MS Access Table automatically updates website

I am in charge of a fire department's website. We have multiple fundraisers through the year and I am looking for a way to upload the winners to the website, immediately as the winner is drawn, via MS Access or Excel. I am assuming Access is the way to go being as it incorporates SQL and ODBC. I am not stuck on just using MS products. If there is a way I can just do this via the front end of the website, I am okay with that too.
I am the only one in the department that has any website background.
I know this isn't a "do it for me" site, but I am just asking to be pointed in the right direction or some sort of starting point. I have searched many different topics and I just can't seem to find exactly what I want to do. I can provide more information if needed. Thanks in advance.

How to add new records in access via vba

'Hi all,
I made VBA, this code add new records into access database. But the problem is when multiple run the vba i get error message as "Unrecognized database format" "Run time error 3343.
Can any one suggest me why i am getting this error. My code is below
I'm guessing you are using VBA to send data from Excel to Access. Please see the links below. Those links should answer pretty much all of your questions about this topic.
http://www.excel-spreadsheet.com/vba/dao_ado.htm
http://www.erlandsendata.no/english/index.php?d=envbadacexportado
http://www.erlandsendata.no/english/index.php?d=envbadacexportdao
http://www.datawright.com.au/excel_resources/excel_access_and_ado.htm
You can import from Excel into Access as well.
http://www.accessmvp.com/KDSnell/EXCEL_Import.htm

Create a log for all SQL action in Access

I'm currently having a problem at work.
Someone in the is modifying the table directly.
For example in my database I have school names like ETS. Well, today it was named Polytechnique.
What I'm trying to tell who did this modification either by his/her IP address or any other way. I currently have no ideas on how to proceed.
What I would like is just the beginning of a solution as to let me figure a part of it . I sadly don't have any ideas for the moment.
Thank you (I'm sorry for any errors english is not my first language. Also I could be mistaken for the tags)
(Welcome to SO. Sorry no one answered your question yet. It almost never takes this long.)
The short answer is: No. There is no way to find out who was modifying your tables directly. Access does not have any kind of automatic change logging, and you cannot create any logging procedures in VBA that will monitor manual changes to the tables.
One of the requirements for Access as a front-end is that you trust your end-users to not open tables and edit the data directly.
To prevent this in the future, here are some options:
Right click on your table to hide it. However, the user can just unhide it if they know it is there.
In your Access db is an option called "Display Navigation Option". Disabling this will hide the side-bar so the user can't see the tables. However, pressing F11 will still display them again. This can be easily googled, so I don't recommend it if your users are motivated.
Store your data in a SQL server and use connection strings (not direct links) to retrieve and store information.
Distribute your Access db via Sharepoint. The user will only be able to access the forms you specify and will have no direct access to the tables.
Consider another software package for your problems.

Using a Word document as a template for an SSRS report?

Greetings.
I've got a few Word documents that I need to send as notifications when something happens. I've got to fill 10 parameters or so from our SQL Server database. Note that I don't need to send them as word documents, PDF will be fine - I was just given them in .docx form.
Now, I immediately thought SSRS was the way to go here. Now that I've spent some time with the Textbox control and it's lack of formatting (SQL2005), I'm not so sure.
Anyone have an idea for a better way to go about this? Right now I'm using TONS of textboxes as I've got to have certain things underlined, certain things bolded, plus all of the parameters that need to be filled.
There's got to be a better solution. Thanks!
Is Reporting Services the right tool for this job? You could easily automate Word 2007 using Visual Studio Tools for Office, do a merge with your data and mail out the actual documents or a PDF of them.
I haven't tried it myself, but this might be worth a look.