473,396 Members | 1,816 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

VB 2005 express database problems

Hi, hope you guys can help.

I have set up a simple one table db to play with using VB express and
the form sees data already entered but when I use the save button on
the form it does not change or add any of the new records.

BTW I used the wizard to drag the table from data sources window which
adds several properties to the form.

Any ideas why the DB lets you see the data but will not accept updates?

Your help is appreciated.

Apr 29 '06 #1
2 1449
Just,

As you have used the datasource wizard, than it creates a single user update
function for you , therefore with this information nobody can help you. You
should have done something extra that we do'nt know

Cor

<ju**************@hotmail.com> schreef in bericht
news:11*********************@i40g2000cwc.googlegro ups.com...
Hi, hope you guys can help.

I have set up a simple one table db to play with using VB express and
the form sees data already entered but when I use the save button on
the form it does not change or add any of the new records.

BTW I used the wizard to drag the table from data sources window which
adds several properties to the form.

Any ideas why the DB lets you see the data but will not accept updates?

Your help is appreciated.

Apr 29 '06 #2
On 29 Apr 2006 03:57:08 -0700, ju**************@hotmail.com wrote:
Hi, hope you guys can help.

I have set up a simple one table db to play with using VB express and
the form sees data already entered but when I use the save button on
the form it does not change or add any of the new records.

BTW I used the wizard to drag the table from data sources window which
adds several properties to the form.

Any ideas why the DB lets you see the data but will not accept updates?

Your help is appreciated.


Run the .exe file in the bin/debug folder, or the .exe file in the
bin/release folder if you have generated a build. Make some changes to
the db and save. When you rerun the .exe, you should see the changes.
If so, then read this:

From MSDN:
One of the things to know when working with local database files is
that they are treated as any other content files. For desktop
projects, it means that by default, the database file will be copied
to the output folder (aka bin) each time the project is built.

1. If you select local database file in the Solution Explorer window,
you will see a property called ‘Copy to Output’ in the Properties
window. By default it is set to ‘Copy Always’ which means that on each
build, the data files in the project folder will be copied to the
output folder overwriting the existing data files if any. You can set
this property to Copy Never and then manually put a copy of the data
file in the output folder. This way, on subsequent builds, the project
system will leave the datafile in the output folder and not try to
overwrite it with the one from the project. The downside is that you
still have two copies so after you modify the database file using the
app, if you want to work on those changes in the project, you need to
copy it to the project manually and vise-versa.

2. You can leave the data file outside the project and create a
connection to it in Database Explorer. When the IDE asks you to bring
the file into the project, just say no. This way, both the design-time
and the run-time will be using the same data file but the downside is
that the path in the connection string will be hard coded and
therefore it’ll be harder to share the project and deploy the app.
Before deploying the app, just make sure to replace the full path in
the settings with a relative path.

Note: "Copy If Newer" seems a better option if not outside the
project.

Gene
Apr 29 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Loane Sharp | last post by:
Hi there I'm not sure that this is strictly relevant to the ASP.NET newsgroup, but perhaps you've encountered a similar problem. Please help!!! I'm using the "System.Data.SqlClient" namespace...
0
by: erlend.dalen | last post by:
Hi all! I'm a newbie to C# and .NET and I'm playing around in Visual C# 2005 Express Edition. I tried to use the wizards to create a table in SQL 2005 Express Ed. and displaying that data in a...
23
by: _AnonCoward | last post by:
I'm looking to purchase VS 2005 some time in the near future. I've read a lot of grief on the web and in this ng as to the flaws and problems with the VS 2005 release (and I understand MS is coming...
9
by: Neil | last post by:
We have an Access 2000 MDB with a SQL 7 back end. We are upgrading SQL Server to SQL 2005, and are considering upgrading to Access 2003. Someone mentioned that they had heard about some...
0
by: Alan M Dunsmuir | last post by:
After some early aborted installations and botched de-installations of VS 2005, SQL Server Express no longer wants to install on my desktop machine, and doesn't even get mentioned during the...
0
by: snowman | last post by:
I have vb and sql server express 2005 installed locally. I cannot add a data connection in vb express. I keep getting the error "An error has occured while establishing......26 - Error Locating...
9
by: HC | last post by:
Hello, all, I started out thinking my problems were elsewhere but as I have worked through this I have isolated my problem, currently, as a difference between MSDE and SQL Express 2005 (I'll just...
2
by: raylopez99 | last post by:
I am trying to program a database from inside C++.NET via Visual Studio 2005 using the ADO.NET set of classes, but this I believe is a SQL Server 2005 Express permissions question under Windows XP...
10
by: =?Utf-8?B?UHVuaXQgS2F1cg==?= | last post by:
Hi, I am developing a windows application in VS.NET 2005. The application is database driven and I need to deploy it on a client's pc. How should I go about developing such an application. I...
6
by: Alaashamas | last post by:
Helo all i have a problem with visual studio 2003 and sql 2005 Express, is there any hotfix to manage the compatiblity i am haveing problems in data adapter when i want to create an sql dataabapter...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.