ms-access

how to comment sentence in sql query - in access 2007 ?

hi how to comment sentence in sql query - in access 2007 ? thank's in advance ...

Select from hundreds of tables at once (.mdb)

We have .mdb file with hundreds of tables: Lesson1, Lesson2, Lesson3, Lesson4, etc. All tables have the same structure: Lesson<n> ---------------- slide_id name description status created_date created_by updated_date updated_by What SQL statement would generate a result like this: | table_name | slide_id | name ...

SQL - MS ACCESS - Show Cells with NULL value with 0

Hi, I tried to write a query in access. My aim is; To get results of how many surgeries are done in one day. Problem is; Result are giving me dates and how many surgeries are done but days without any surgery are not listed on the result table. I want days without surgery to be shown as 0. But there is no record about SURGERY TYPE 1...

Forcing Access 2007 to run Access 2000 app WITHOUT putting everything in tabs

I have an old Access 2000 app (I don't do much Access dev these days) that a client is trying to run in Access 2007. It runs fine for the most part, except the forms do not behave as-designed when they are called/instantiated, etc: Access 2007 puts every new form inside a "Tab" of sorts, which is causing confusion on the part of the end ...

Update ms access database via vb.net

How can I do that? I already have the code I'm working on but it seems that it doesnt work really fine. Here is how my program works. I input an id number(unique) on a text box and click the search button. The entries that corresponds to the id number is then displayed on the other text boxes. And then I try to edit one of the entries...

How to search data using OleDbDataReader in VB.NET?

With ms access as the database storage software. And if you know of other ways on how to read data base on a certain criteria and displaying the results that meets the criteria. ...

Commas instead of semicolons in MS Access lookup column

I would not dare label myself as a programmer. But I am running a website with a storefront. I want to label some of my products with multiple categories. This involves creating one column in my MS Access database (called categories) that has categories separated by commas. i.e. "shirts,clothing,wearables,sports" I've added a lookup co...

Save in database didn't work ?! (VB.NET | OLE)

Hello ,, I used the following code to save what the user editing , the code don't give me any error code , but in the same time it don't do any thing , the data still without any new changes : Dim a As String a = comb3.Text & "/" & comb2.Text & "/" & comb1.Text Dim SavInto As New OleDb.OleDbCommand Dim ConStr A...

Error in getting Dates in database (BETWEEN Clause| VB.NET|OLE)

Hello , before a little time , I used a code to get the dates between 2 dates from the database (column with dates dd/mm/yy) , I think it works nice first time , the code is : Dim b As New Date Dim a As Integer a = Val(tx2.Text) b = System.DateTime.Today b = b.AddDays(-a) ...

Finding Tables in MS Access using C#

Is it possible to determine the tables and its column in MS Access in a particular database using c#? Can any one guide me in this issue? ...

MSAccess: type mismatch in date column for sql query

In ms-access database i have a table named tableA this table has a column called Call_Date which has 4 types of entries dates ( e.g 10/23/2008 ) - NA Blanks ( empty cell ) how can i write a query to select all rows of tableA except those where the Call_Date column has - or NA or Blanks i tried writing Select * from tableA where C...

Is it possible to replace data in a column in ms-access ?

In ms-access database, is it possible to write an sql query to replace the number in a column with a number obtained by adding 2 to this original number. ie, all numbers in a column should be replaced by the original number plus 2 ...

SQL query to add column datediff calculated in months.

in the ms access database columnA has date entries collumnA 01/15/08 02/11/08 12/23/08 how do i write a query to add new column called months. where months are calculated as months = no. of months between original date to 01 dec 2009 ...

Can I combine these two SQL queries into single query?

Can I combine these two SQL queries into single query? query1 ALTER TABLE tableA ADD datam INTEGER; query2 UPDATE tableA SET datam = DateDiff("m",[call_date],#12/1/2009#); ...

changing multiple column names with a single query

in ms-access, how to write a query / DDL to change multiple column names with a single query. ...

Avoiding MaxLocksPerFile via odbc connection to MS Access

Due to "circumstances beyond my control"tm, I am using sqlalchemy with an MS Access backend. I'm having an issue that the following code: def delete_imports(self, files_imported_uid): table_name = 'my_table' delete_raw = self.meta.tables[table_name].delete() self.engine.execute(delete_raw.where( self.meta.tables[tabl...

Update query "updatable query" issue

In Access 2003, I'm trying to take a table and if any Indicator = 1 for ANY line of a given ID, make all lines = 1 for that ID For Example, if we have: ID Indicator Jack 0 Jack 0 Jeff 1 Jeff 0 Mark 1 Mark 1 Would become: ID Indicator Jack 0 Jack 0 Jeff 1 Jeff 1 Mark 1 Mark 1 Since both Jeff and Mark have at least 1 line with...

Drilldown using unbound comboboxes with Access "Continuous Form"

There has got to be a simple(r) way to do this. I have a situation where I am listing parts using continuous forms. The parts listing has things like the part type, manufacturer, part number and the quantity. The list is of the part instances & quantity. I can look the other things up from the instance of the part, so displaying exist...

ADO.NET database access

I have written a program in VB.NET and one of the things this program does is insert records into a Microsoft Access database. The backend of my program that access the database is written as an interchangeable layer. If I "swap" this layer out with a layer that used a Microsoft SQL Server database, my program flies. If I use MS Access, ...

can i combine these update queries into one query

In an MS-Access database with Table called NewTable3 can i combine these 3 sql queries into one query UPDATE NewTable3 SET SAO = '0' WHERE SAO LIKE '-'; UPDATE NewTable3 SET SAO = '0' WHERE SAO LIKE 'NULL'; UPDATE NewTable3 SET SAO = '0' WHERE SAO LIKE 'NA'; ...