ms-access

Why can't I add tables to my Access database in Visual Studio 2008?

In Visual Studio 2008 server explorer I see the Access database fine. I can view tables and data and I can even update the data. But I can't add new tables. Does VS 2008 not allow me to do this? Or is the security not right? ...

Reading multiple tables from MDB file into Dataset

I have an MDB file created with Microsoft Access 2007. I would like to read the 10 tables from that file. I would like to avoid multiple trips to the database so I would like to get all the data into memory when the for loads. And I will commit any changes when the form is closed. Can I create 1 DataSet and fill it up with all 10 tab...

MS Access 2003 - Performing Calculations in a table's field with Transactions Table

One thing I want to do is build a personal database for myself at home to use a financial database (transaction log, checking/savings account tables, etc), and I want to do this mainly to learn more about developing databases. I am pretty familiary with MS Access, though not put to use in this context, but what I am really trying to lear...

Set a var = to the result from a sql statement in Access

I am trying to set the value of the member number = to the current max number + 1. What ist eh best way to do that? I am using Access 2007. ...

parameterized query in ms access 2003 using vba

Ok. I want to use parameterized queries to avoid dealing with embedded double or single quotes (" or ') in my data. As a simple example, what would the VBA code look like for the parameterized verion of this? Dim qstr as String Dim possiblyDangerousString as String qstr = "SELECT MyTable.LastName from MyTable WHERE MyTable.LastName ...

connection timed out error while deploying spring app

I’m trying to deploy a simple Spring app and getting a “connection timed out ” error. My app tries to take a text input from the user in one jsp, insert that value under username in the db and then display that name in another jsp along with a greeting eg: "hello, " My environment: OS: Windows XP professional Server : Tomcat 6 IDE: ...

Escaping non-ASCII characters (or how to remove the BOM?)

I need to create an ANSI text file from an Access recordset that outputs to JSON and YAML. I can write the file, but the output is coming out with the original characters, and I need to escape them. For example, an umlaut-O (ö) should be "\u00f6". I thought encoding the file as UTF-8 would work, but it doesn't. However, having looked a...

Data type not found error in JDBC connection in java?

I am using Microsoft Access database for storing data. In that, I stored date as "DATE/TIME" data type. While getting date from the following code it produces error.. String sql = "Select prev_date from StaffAdvance where Staff_ID='"+date+"'"; ResultSet rs = st.executeQuery(sql); What is wrong with t...

Get column names when you load from an access file

I load 10 tables from an ACCESS 2007 file database. IS their a way I can get the column names into the dataset or do I have to rename each column? I am using Visual Studio 2008 in VB.NET. I would like to reference the columns in the code by the name and not have to use an index I just went ahead and added the following code for eac...

login form using ms access in vb.net

I'm creating a login form for vb.net using ms access 2003 as database. But it only checks for the username and bypasses the password. Meaning that if the username is correct and the password doesn't jive with the username, the user can still enter the system. Here is my code: Try Dim NoAcc As String Dim NoAccmod...

Access ADP sums decimals into text???

I'm using SQL Server 2008 and Access 2010 beta - but this problem occured with SQL Server 2005 and Access 2007 as well. I have an Access adp connection to the SQL Server. I create a view that does a group by and sums a column which is type numeric(7,2). The result of the sum expression is inexplicably treated as text by Access. In SQ...

SQL Update each record with its position in an ordered select

I'm using Access via OleDb. I have a table with columns ID, GroupID, Time and Place. An application inserts new records into the table, unfortunately the Place isn't calculated correctly. I want to update each record in a group with its correct place according to its time ascending. So assume the following data: ID GroupId Time ...

MS Access: Binding detail controls from a combo box

I want to handle the change event of a combo box and filter the detail controls data based on the selected value of the combo box. How to? ...

ASP : Call ACCESS procedure with accent

Hello, I'm stuck with an application where I have a stored procedure with an accent. Set cmdStoredQuery = Server.CreateObject("ADODB.Command") cmdStoredQuery.ActiveConnection = Conn cmdStoredQuery.CommandText = "S_Réseau" Set RS = server.createobject("ADODB.Recordset") Set RS = cmdStoredQuery.Execute When I execute it, it says : E...

ms access: how to store the contents of a table in a string array?

i'm working on a MS access database.. At some point i needed to create a module which contains a dynamic string array, the data to store in this array should be brought from a table, i use count(*) function on that table to define the size of the dynamic array. what i need to know is how to fill the array with the contents of a columns...

Is it possible to put a combo box (drop down list) in a MS Access MsgBox?

There is a combo box (dropdown list) with a list of revenue types. If the user types into the box a value that is not part of the list, a msgBox pops up and asks them if they want to add that value to the list. Here is my problem: In that msg box, I want to give the user a combo box list of revenue groups to choose from (so that the ess...

How to convert MS Access DB from version 97 to 93 (not a typo)

How can I convert MS Access DB from verion 97 to 93? Is this even possible? Any help/suggestions would be appreciated. EDIT: I'd like to take a full database (tables w/data, queries, forms and reports), but not the code. ...

How would I have a MS Access form come up with certain fields pre-populated from the previous form?

Basically I just need the id of the record on the first form so I can stick it in the foreign key column of the record on the second form. How do I pass this information along? Please ask for clarification in comments if this is not enough information. ...

What is likely to be the cause (and solution) for MS Access 2000 databases that will not run on an English OS or on a Japanese OS, and an English Office version?

My company has a few legacy MS Access 2000 databases used for project based data, 2 of these databases do not work on the English installation of MS Access 2000. And from what I hear, at least one of the two, will not work from the English OS. I am becoming fairly handy in MS Access out of necessity more than anything, but am hoping som...

MS access: what is a recordset in vba? what does it serve?

what is a recordset in vba? what does it serve? how to use them? thank you for helping me ...