ms-access

How do I Insert data in MSAcess 2010?

I need to insert the data into an MS Access database of (2010) with Asp.net (VS 2005) Please check the code below. When I run the code I get an Error on ExecuteNonQuery. Operation must use an updateable query Public Function InsertScheme(ByVal pScheme As Scheme) As Boolean Dim a As String = "Provider=Microsoft.ACE.OLEDB.12.0; " & ...

Best way in MS Access to edit data enriched with data from an ODBC table

This is the simplified version of the problem: We have a table on an Oracle Database. We cannot extend this table (bought app). We need to describe each row of that Oracle table with some text. So the descission has been to use MS Access for this. So I created in Access a table (Call it ACCESS_TABLE). The table consists of ID and MEMOT...

Open Microsoft Access Database in Blackberry Phone

Is there a way i can use an access database from my Blackberry Curve? All i want is to be able to open the DB, open table and run queries. How? Thanks, ...

Migration issue from MS-Access 2003 to MS-Access 2010

I work for a company where we likely going to update from Access97/2003 to Access2010. After playing around with a prototype, I have found an issue when using Access 2010 with databases created in Access 2003. Under some conditions, existing queries/SQL's in Access 2003 will become unusable in Access 2010. Here a small example: Tablen...

MS Access performace dlookup on query or dsum?

I know that all of the domain aggregate functions are slow, but I am looking for the least of the evils. Which will be the faster of the following two options? Create a query that will group by the unique value and sum the total. Have dlookup to get my sum from the query. Do a dsum on the main table with the criteria being the same as...

Joining 3 tables into 1 - SQL

I'm trying to LEFT OUTER JOIN two tables and then INNER JOIN another table together in Access 2007. SELECT RestaurantName, StreetAddress, City, State, Zip, RestaurantWebsite, MenuLink, RestaurantTimes, PhoneNumber, PictureTi...

ms access db order by month asc issue

In my database i have month name as january, february, march like that. I represent field name is text. When i execute the select query with order by month field month, it will provide the output as february, january like that. I know it is clear by the FORMAT or db field representation. Though i am new to the ms access so i don't kn...

Exporting Entire Contents of an Access DB to Individual XML Files

I have many tables that I needed to frequently export from an MDB file to XML, and I hated going through the built-in wizard for each and every table multiple times. So, I made a macro and thought I'd post it on here. This is a community wiki post, so please add suggestions and other solutions! This will export each table into its own...

Get Database's Tables

Hi I want to write a query to get the names of tables of a specific database, but I don't know how can write it. I want to execute this query for MS Access 2007 and Oracle 11g. Thanks ...

dblookupcombobox has a null row

I have a question about DBLookupComboBox. I have a program that has a database I wrote. It has everything, except when I open DBLookupComboBox it must have a row with null value for when user wants to select nothing. But there isn't one. How can I make a null row show up? ...

How to close JET DB Connection in order to make a copy of MDB file?

My .net app uses an MDB file as a database (JET 4.0). From this app I need to make a BACKUP of the current database. The backup is performed making a ZIP file with the Access file. My function is throwing an error because the Access file is in use (by my own app). I tried to close the connection just before compressing the file but that...

Calling MS Access Stored Queries with Parameters using DAAB v5.0

I wanted to find out if it is possible to call MS Access Stored Queries with parameters using DAAB. I am using the Northwind sample database to test this scenario I have created the following Stored Query with parameter in MS Access: PARAMETERS FirstName Text ( 255 ); SELECT Employees.ID FROM Employees WHERE (((Employees.[First Name])=...

Update query not working in table adapter

I have a table adapter on which I want to query an update to my database. UPDATE Polls SET DateRequest = ? WHERE (Id = ?) But it's not working when I try to execute it _pollsAdapter.UpdatePollById(id, DateTime.Parse(RequestedDateBox.Text).ToOADate()); The adapter also has some other queries for selecting or inserting and they all w...

How do I run SQL queries on MDB files?

I need to run an UPDATE query on a large MDB file (~30mb), is it possible? how? ...

MS Access query with dynamic from statements

Ok this is vexing me. I have a query I created with an in statement in the from clause. What I am looking to do is have a global variable populate that from statement. Example Select * Form query1 in <Global Variable filename> What is going on is I link to a file that has hundreds of linked table and queries in it. My database only ha...

Merging strategy for access 2007 database

I have a Windows application with access 2007 database which is deployed at 2 different locations - Sales office/Factory. Every day both the locations need to sync up the database so orders are propagated to the factory and order status/invoices/production updates are propagated to the sales office. The schema for both the db copies is i...

Database Modeling an Email List and Report Types

I'm having a huge problem in modeling this problem. I'm writing a exam taking application (in MS-Access, but this isn't really relevant) and there are a few reports that need to be sent out. The first report is sent out automatically after a person completes an exam. The second report is sent out every 2 weeks (or whatever they want to ...

how to Speed Up the VBA Macros

I am Generating a New Sheets using macros. For a New Sheet generation , Data is retrieved from more than 4 MS Access DB. Each DB had minimum 200 field. My Macro code includes 1. Cell locking 2. Alignment and formatting 3. One third of the cells in the sheet had a formulas 4. Cell reference with other Workbooks My problem is e...

Using TOP 5 with COUNT and LEFT JOIN

Hi folks, I've been using the following code, given to me by HansUp (cheers!), and it's been working great: SELECT g.ID, Count(t.Grade) AS Total FROM grade AS g LEFT JOIN (SELECT Grade FROM telephony WHERE [Date] BETWEEN #08/16/2010# AND #08/20/2010#) AS t ON g.ID=t.Grade GROUP BY g.ID ORDER BY 2 DESC; I'm now looking to find the...

Is there a query that will return all of the column names in a Microsoft Access table?

I have a Microsoft Access database that I connect to with the Jet Database Engine, using VB.NET. I want to programmatically get all of the column names for a particular table. I would like to do the equivalent of this MS SQL statement: SELECT COLUMN_NAME FROM INFORMATION_SCHEMA.Columns WHERE TABLE_NAME = 'TableName' Is this possible...