Advertisement

04.29.2008 at 11:31PM PDT, ID: 23364537
[x]
Attachment Details

Can Read From Access Using VB.NET / Access Query but Can Not Write.

Asked by wsenter in Visual Studio .NET 2005, Microsoft Access Database, SQL Query Syntax

Tags: Microsoft, VB.NET and ACCESS, 2005 and 2003, VB.NET

Would anyone know off the top of their head what to check next. I have spent hours looking at this. I am running Vista. Thought that may have something to do with it but I moved the program to XP and it does the same thing. As Stated the SELECT Querys work ok.  I just cant get any INSERT or UPDATE to work.

I am calling an Access 2003 Query much like you would call an SQL Stored Procedure. The SELECT querys work well.  The INSERT Querys act like they are saving data but do not.
I refrerence the Access Querys like this:

VB Code
----------------------------------
objData = New Globals
objData.SQL = "usp_InsertEmployee"
objData.InitializeCommand()
objData.AddParameter("@LoginID", OleDB.OleDBType.VarChar, 50, txtLogin.Text.ToString.Trim)
......
objData.OpenConnection()
objData.Command.ExecuteNonQuery
objData.CloseConnection()
objData.Dispose()

The ACCESS Query that is called looks like this:
-----------------------------------------------------------------
INSERT INTO Employees (LoginID, Password)
VALUES (@LoginID, @Password);
Start Free Trial
[+][-]04.30.2008 at 12:42AM PDT, ID: 21468753

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 12:47AM PDT, ID: 21468772

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 12:55AM PDT, ID: 21468796

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 12:56AM PDT, ID: 21468800

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 03:23AM PDT, ID: 21469325

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio .NET 2005, Microsoft Access Database, SQL Query Syntax
Tags: Microsoft, VB.NET and ACCESS, 2005 and 2003, VB.NET
Sign Up Now!
Solution Provided By: MikeToole
Participating Experts: 2
Solution Grade: B
 
 
[+][-]04.30.2008 at 05:51AM PDT, ID: 21470192

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 06:02AM PDT, ID: 21470269

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 06:23AM PDT, ID: 21470433

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 08:26AM PDT, ID: 21471591

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.30.2008 at 09:23AM PDT, ID: 21472215

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628