ms-access

msaccess.exe opens while trying to release the object

I am opening a MS Access DB which is Password protected in vb.net using the folloing code: Try oDB = oDBEngine.OpenDatabase(Name:=strFullFileName, Options:=False, _ ReadOnly:=False, Connect:="") Catch ex As Exception strError = "File is password protected." Exit Function End Try But while rel...

MS Access Project In TFS Build

Hi All, I have a question for all of you and please any ideas are welcome. We have alot of MSAccess database projects in our repository on which developers work and do there tests in Dev Envoirment on there own. As you all know compiling a databse project is itself a wrong statement, cause you actually need to test your scritps and repo...

How to hide/Unhide a MS Access DB form using vb.net

If a form in Access DB is set as hidden. Then how to unhide it? so that we can manipulate the form programmentically using vb.net. Thank you. ...

How to Order a SQL Query with grouped rows

I have the table (Product_Id, category priority, atribute1, atribute2...) in MS Access, and I am trying to make a query that orders the data grouped by Category and ordered by the highest priority. Priority can be Null, so it should be placed at the end. Example: Table 1, 100, 2, atr1, atr2 2, 300, , atr1, atr2 3, 100, 5, atr1, atr2 4,...

Possible to search multiple tables with a single query? [MSAccess/SQL Server]

Hi all, So my goal here is to have a single search field in an application that will be able to search multiple tables and return results. For example, two of these tables are "performers" and "venues" and there are the following performers: "John Andrews","Andrew Smith","John Doe" and the following venues: "St. Andrew's Church","City ...

Access: How to find a field in a whole database ?

Hi, I have a database with many tables. I am looking for a field which may or may not exist in one or many of the tables. How do i check if it exists or not. (without querying each table of course). It is an access database Thanks tksy ...

Switching from ms-access client interface to executable file

Are there any object similar to ms-access forms in VB, .NET or other microsoft technologies? We have been now using Access for developping client interfaces with some success for the last 2 years. We are using a serie of development tools making the best use of a metamodel (we have tables for forms, local queries, menus, controls, conne...

Create a query dynamically through code in MSAccess 2003 [VBA]

Hi I need to create a query in MSAccess 2003 through code (a.k.a. VB) -- how can I accomplish this? ...

Form level event for when data is changed on a MSAccess form?

Well basically I am working on an MSAccess application and on the form where administrators will view and edit user data I want to be able to call an event with the old and new values of a field whenever it is changed. This function will add a record into the audit table to track changes. I have no problem creating the query to add the...

Exporting Excel cell data to database via Excel macro?

Can I create a macro written in C# for Excel that allows me to export a cell's data to a SQL Server or Access database? Basically, I'd like to create a button in Excel that saves the data in certain cells to a database. Can this be done? Instead of creating a UI from scratch for a program, I've decided using Excel as the user environm...

For each not working properly in VBA code

Well I am almost done finalizing the auditing portion of my application that I discussed here. The way I am doing it is looping through all text fields, drop down boxes and checkboxes and storing their values in the form_load event. Then I am doing the same thing in the form_afterUpdate event and comparing the two. If there is a diffe...

Access via ODBC - Oracle DEFAULT not working

We use MS Access as a front-end to Oracle tables, via ODBC, and it has been working well. But we're trying to use the DEFAULT constraint in an Oracle table. When we open the linked table in Access, we see existing data just fine, but when we try to add a row, without keying any value into column(s) that have an Oracle DEFAULT (expecting...

Recommendations on using SQL Server GUID from MS Access

I'm upsizing an existing MS Access backend to SQL Server 2008 and, because we want to use SQL Server Merge replication, I'll have to change all current primary keys (currently standard autoincrement integers) to GUID. So here are the questions: Any recommendation on doing the change of primary keys from integer to GUID? Any recommenda...

SQL in an e-mail app

I would like to be able to perform SQL queries on my e-mail inbox. With the output, I can make graphs about how much e-mails I send or receive for example. I want to analyze my performance and what keeps me busy. My mailbox seems like a good place to start. I'm using Gmail on-line, and Thunderbird, Outlook 2007 and Mail.app trough IMAP...

String acting abnormally in a For Each loop in VBA code in MSAccess

Okay so I started with a question and have made a lot of changes to the code based on suggestions from this site and others so I figured I should create a new question. Even though my code is shorter and more efficient the same problem persists; I am using a string called strSQL that contains and INSERT statement that I want executed. ...

How to get "extended properties" of Access DB Using OLEDB or ADO connection.

Hi, I am trying to access MS-Access DB extended properties like Author,Owner, Last Modified Date, Last Accessed Date etc. using vb.net. Please help me on this issue... ...

How do I pass a parameter into an access report programatically?

I've got an existing Access MDB. I'm adding a command button to an existing Form that runs an existing report. The change being made is that this button needs to pass in a parameter containing the ID of the record being reported on - currently the report runs on every record in the MDB. I've altered the Query that the report runs on t...

Does Microsoft Access have Full Text Search?

Does Microsoft Access have Full Text Search? I know that MySQL and SQL Server have Full Text Search, but I am not too certain on Access. If Access doesn't have Full Text, what is the best alternative to achieve the same objective of Full Text Search? Thanks ...

Dictionaries and Hash Tables in MS-Access 2007

I'm want to use either a hash table or a dictionary in my access program. Apparently, I'm supposed to be using the Microsoft Scripting Runtime Library for this, but it doesn't work. Dim Dict1 As Dictionary ' Create a dictionary instance. Set Dict1 = New Dictionary It can't find the methods ".compareMode" or ".Add": With Dict1 ...

MS Access Linked Table Permissions

Does anyone know which permissions are required for refreshing or connecting to linked tables in ms access 2003? I have basically two user level security groups setup; 1 for admins and 1 user level. Admins have full permissions and have no trouble refreshing the linked tables. The users group has read/update/delete permissions for th...