How to recover VBA Visual Basic password - vba

I have developed an application using VBA access. I forget my module level password. Please guide me how to recover i want to modify the code.
Thanks in advance.

Related

VBA ADODB Connection - SqlConnectionStringBuilder Class

Background
I have an Excel application that connects to SQL Server using ADODB Connection via VBA. This ADODB Connection contains credentials that are hard coded. I know this is not best practice.
Issue
It has come to my attention that there are some users that are using this method to access password protected VBA modules, and retrieve connection credentials. Which they use it to access the server.
Possible Solution?
I am considering possible solutions to hide the connection string from VBA or set up a secure connection string using this method.
I wonder if it is possible to build this class with the credentials built in, so that in the VBA we do not hard code the credentials, rather just refer to this connection class?
Anyone here has experience with this?
I have looked at this solution. However, I am using a 2017 version of Visual Basic and I am unable to follow the step-by-step guide. In particular, I was unable to find the activeX reference.
I would really appreciate any help with this.
Many thanks.

How to connect to TFS through VBA code

Really need a assistance here. Google didn't help me much. I found this is somewhat plain solution.
http://www.codeproject.com/Articles/183317/Update-TFS-WorkItem-from-Microsoft-Access-using-VB
But is it possible to connect the TFS without the help of dot net visual studio. Something like adding the reference and using those in code.
The TFS Client Object Model is not exposed to COM and there is no way to call the .NET objects directly from VBA without a COM wrapper.
If you're connecting to TFS 2015 or Visual Studio Online, you may be able to use the REST API's by directly invoking the REST calls.
Not sure why you would not just use VSTO in Access, which allows you to use C# or VB.NET for your add-in.

Import csv file to access database using visual basic

I'm very new to visual studio and visual basic.
I already studied the basics of visual basic so I tried stepping up a little and play with database in visual basic. I'm using visual studio 2010.
I first made an access database. I followed the instructions that I searched on the net on how to connect it to your visual basic program. Data>Show Data Source>Add Data Source> ...
But when I search on how to do it, I became really confuse because of these things:
Is vba and vb the same?
all the tutorials are for access but why do they still need to have a stringconnection when they already connect it using what I did?
they are searching for .mdb but the extension of my access database is .accdb?
they have an sql query for inserting the datas from the csv file but the pc that will be using the program don't have sql installed but mysql. Will it still work?
I'm still noob in these things so please if anyone can shed some light in these questions, thank you very much. >.<
VBA and VB 6.0 are almost the same. Main difference is that VBA is intended to be host in application like Excel, Word ....
BUT language you probably use with VS 2010 is VB.NET and that is something different. VB.NET is object oriented language which target .NET Runtime and Framewor. See Difference between Visual Basic 6.0 and VBA
Connection string is a string that specifies information about a data source and the means of connecting to it.
In .NET this describe (or can) path or location, provider, credentials and other informations. See MSDN Connection string in .NET
If I'm correct MDB is older format and ACCDB is format used by Microsoft Office Access 2007 and newer. Here is post how to connect to access db file: SQL connection string for microsoft access 2010 .accdb
But do you realy need to use acess database? There are better alternatives.
There is no need of real database engine for your scenario. You wanna to use standalone file as a datasource, dataprovider will be responsible for interaction with datasource. E.g. OleDB provider

Editing resources in Microsoft Project VBA not reflected on server

when I try to edit an enterprise resource in Microsoft Project using VBA (SetField method of resource), I am able to set custom fields, and can see those custom field changes with GetField, but these changes are not seen on the server/in PWA. And when I restart MS Project and run the VBA the changes are gone.
Am I missing something? Do I need to add a line of code to check in my changes?
Thanks in advance!
I had the same problem in my C# code. You have to publish your project after the changes:
Get ProjectDataSet from the server
Do your local changes to the dataset
Check out the project
Update the DataSet (send it to the server)
Check in the project
Publish the project!
I hope it will help
Florian (geeklife.ch)

How do I edit an Access ADP file?

So I have this Access Database Project file that I have been tasked to edit. I have Access 2003 and 2007 installed. The ADP only supports 2003 for some reason. Anyway, the issue I have is that I can't figure out how to get to the VBA code in behind things.
The previous developers have done a very good job of locking everything down on the GUI such that the only thing I get when I open the application is a notice saying that it can't find the database on the server. (More than likely there is a problem there too, but since I can't look at code I don't know for sure.)
Does anyone know how to get around the GUI lockdown that has gone on here?
Michael
As it turns out, you can edit an ADP file that has all of the form information turned off by finding the file using Windows Explorer by highlighting the file, then hold shift, and then hit enter. You continue to hold shift until the interface is loaded.