ms-access

MS Access 2003 - Really simple question

If I try to duplicate an access file (this file is split into mdb and be mdb, and also has mde files), by importing everything into a brand new access application, why won't the table links work? Everytime I click anything it says that the tables cannot be found Probably so simple its not worth asking on here, but ....??? Thanks! ...

How do I execute multiple SQL Statements in Access' Query Editor?

Hello I have a text file with a few SQL statements in it that I want to run on an Access database. I thought that should be possible with Access' Query Editor. So, I go into this editor and paste the statements: insert into aFewYears (yr) values ('2000') insert into aFewYears (yr) values ('2001') insert into aFewYears (yr) values ('20...

how to add new column in ms access by matching values

in an ms access database with two tables TableA MSN PR1 12 A 13 B 11 C 14 X TableB MSN PR2 14 L 12 M 13 O 11 X how can i write an sql query so that PR2 columns gets added to TableA but only after matching the MSN values . so the final TableC would be TableC MSN PR1 PR2 12 A...

sql query to show all records except for certain records

i have an ms-access table TableA MSN PR 11 - 13 A 12 Dead 14 B 15 C How can i write an sql query to remove records in "-" and "Dead" occurances in PR collumn. so that query result should be MSN PR 13 A 14 B 15 C any help appreciated ...

SQL query to select all columns in a table except two columns

I have a table in ms-access with column names A to H TableA A B C D E F G H how can i write a query to select all columns except B and F columns. Query result should be A C D E G H Do we have something like this select * from TableA except B, F ? ...

SQL query to replace all occurrences of space in a table with underscore

How can I write a SQL query to replace all occurrences of space in a table with underscore without writing individual statements for each column? ...

Add a summary row to MS Access query

I have a query stored in MS Access which is doing a standard select from an Access table. I would like to add a summary row at the end showing sums for some of the data above. I have looked at DSum() but it isn't suitable as I would have to include the running total on each row as opposed to just the end. Also, note that I don't want ...

NHibernate + Jet Replica Database - Exception thrown when committing transaction ("a different object with the same identifier value was already associated with the session).

I have an application where we're using NHibernate and the NHibernate Jet Driver to open existing .MDB files (Access 2003 / Jet 4.0 databases), read some information and add some new records. Unfortunately we have no control over the database format - so we're stuck having to support Jet. The problem I'm facing is that when performing ...

how to convert result of an select sql query into a new table in ms access

how to convert result of an select sql query into a new table in msaccess ? ...

how to combine different objects in ms-access each containing different queries into one object

i have created multiple sequential sql query objects for an ms access database. e.g objectA is named sqlqueryA and contains the sql code Select a, b, ........From TableA objectB is named sqlqueryB and contains the sql code Select a, m, n...... From sqlqueryA objectC is named sqlqueryC and contains the sql code Select x, y...

VBA Office 2007 Create 2003 Excel Sheet

Hi, Since a few days I'm using MS Access 2007 in a certian process. In my VBA code I use: CreateObject("Excel.Sheet") In Access 2003 a document was created in 2000-2003 format. Now in Access 2007 VBA enforces the new format. This causes problems in some additional coding. Any suggestions how to enforce older format (2000-2003) through...

VBA string length problem

Hi, I have an Access application where everytime a user enters the application, it makes a temp table for that user called 'their windows login name'_Temp. In one of my reports I need to query using that table, and I can't just make a query and set it as the recourdsource of the report, since the name of the table is always different. ...

How to Launch External SQL from an MS Access Link

I am building an Access database that functions as a reference library. I want to use links in the Access database to execute SQL queries in a different database. Presently when I click the Access hyperlink it tries to run SQL ServerManagemenrt Studio but then errors with 'The operation could not be completed'. I also tried using the Acc...

How to bottom-align string in Access report textbox?

Using Access 2003. On a subreport I have arranged a row of text boxes that will be populated with dynamic data. (These will appear as column headers on a master report.) Due to report constraints, the text boxes are tall and somewhat thin; some incoming strings will be longer than other strings; strings are expected to wrap when necessa...

Is it possible to save year 1 to 99 as date-value in Access database?

Access automatically converts any value under 100. ie: 0099 converts to 1999 and 0010 to 2010 and 0001 to 2001. Is there any way around this problem or is it not possible to save dates in Access so far away? ...

How can I know which item in a mult-select Microsoft Access listbox was clicked?

Hello, I have a listbox in a Microsoft Access form. The MultiSelect property is set to simple. I want to know which item in the listbox was clicked. Keep in mind that an item may be clicked to SELECT or UNSELECT an item. Is there a simple way to do this? If not is there a complicated way to do this? I tried to use the SendMessa...

Java MS Access Database Connection without Admin rights

For a JAVA project I am working on there is a requirement that I use a Microsoft Access Database running on a computer where I do not have administrative priveleges. So, I have the Access DB file all ready, and I started doing some research - but everywhere I look mentions the need to use the Admin Tools (or Control Panel) to "setup an ...

End User Ad-Hoc Reporting Tool: Microsoft SQL Server Management Studio or Microsoft Access?

Our centralized IT department has suggested two primary ad hoc query tools for our general user base of approximately 200 staff members: Microsoft SQL Server Management Studio 2008 (SSMS) Microsoft Access 2003 Environment The backend database is a read-only Microsoft SQL Server 2005 database. The schema is 400+ tables; allowing a...

Export MS Access tables through VBA to an excel spreadsheet in same directory

I have two tables in my access database that I want to be able to export to excel. I can do it by opening the table and then doing File->Export... and then choosing the format and typing in the file name. However, this way the user actually has to type the name in so there is room for misnaming the file or for saving it as the wrong for...

How to create parameterized queries in vb.net?

Using parameterized queries with ms access 2003 integration. To search any data according to different criteria. ...