473,811 Members | 3,182 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

after several updates, data gets lost in other fields

4 New Member
Hi
I have an update command that works fine, but when I update the record let's say twice or thrice, some data gets losts in the database in certain fields.
E.g
Dim str as string = "update booking set name= '"&me.fname.tex t &'",lname='"&me .lname.text &'"where bookingid='"&me .booingid.text
&'
"'"
Dim command as new sqlcomand (str, con)
Con.open
Command.excuten onquery()
Con.close
It updates but certain fields become blank after several updates. Plz help
Jan 10 '11 #1
0 838

Sign in to post your reply or Sign up for a free account.

Similar topics

4
2682
by: Pieter Linden | last post by:
Hi, Hopefully it's just me missing something obvious (but at 2AM, not much is obvious, I guess...) I have a table of courses that people have taken (StudentID,CourseID) and the user selects a student from a combobox on the form, and it highlights courses in the student's specialization (that's fine). But when I run the code to change the font's ForeColor property, the FontBold property mysteriously gets lost. Is my code just screwy or...
5
6113
by: ND | last post by:
I need to create a separate field from 4 fields, "street address", "city", "State" and "zip code". For example, Street address - 100 Forest Street City - Seattle State - WA Zip - 05555 Would become:
2
2128
by: Gary Kahrau | last post by:
I need some help passing data to and from a usercontrol. In the following Property DisplayValue, If I hard code a return value (Return "Test Data"), then the data gets returned. If I work with any kind of assigned value, the return value is blank! Any idea on what I am doing wrong?
3
3436
by: Jurgen Appelo | last post by:
I asked this question earlier, but unfortunately the two replies I got did not solve the problem. Here it is again, but now with the code: After an Update my FormView always loses its viewstate values. The field values in the FormView are always overwritten by the results of the Update method in the business layer. No matter what I do, the databind always takes place, even when I don't want it to. See the example below. This is a...
2
13755
by: Bob | last post by:
I'm running sql server ver 7.0 SP4. I have an access project (.adp) that runs a view which is nothing more than a select statement. Access locks up solid when I try to run this query - with NO error messages what-so-ever. If I sign onto the server, and run the view from enterprise manager - I get: "the data provider or other service returned an E_FAIL status" !?!?! There is NO ERROR number, or further explanation of the message!!
1
1596
by: Grex | last post by:
I have a table with about 20 fields. There is a name field that is populated repeatedly with the same names over and over. Let's say 1000 records, and 25 names. Each name is in there 40 times. I want to write a query that would return all of the fields for each name. The data in the other fields does not matter. I just want a unique row for each name. Thanks, Grex
27
4004
by: SSG001 | last post by:
User selects choclates code and qty to be produced is entered by the user depending upon the packing of choclates the table is shown where again the produced qty is divided betwwen packing. once the user clicks ok button below code should get executed afte this data is fetched from mysql table and displayed in the below table once refreshed and i'm passing choclate code but not passing packing list details in javascript so it get...
8
2935
by: Wingot | last post by:
Hey, I have a program I am trying to write using Visual C#, SQL Server 2005/2008, and Visual Studio 2008, and one part of it includes a Schema called Client. Inside this schema, three tables exist named Country, MedicalCondition, and Customer.
2
1543
by: raaman rai | last post by:
I have turned up Automatic Updates in my system in it daily updates and ask for restart after successful installation. Today again my system was restarted on its own after the updates but surprisingly i was greeted with the logon screen. Infact i have no password assigned for my system and i have only one system account created when i installed the OS. It didnt have password nor had i assinged any password for BIOs also. So its just ridiculous...
0
1086
TheSmileyCoder
by: TheSmileyCoder | last post by:
I have a report with some data on the left side, in fields that can grow, and some fields on the right side. My problem is that when the lefthand fields do grow, they "push" down my righthand fields. (see picture). The red lines is indicating where the growth has occured. How can I prevent the fields on the right side from being moved by the growth of the other fields? My own solution would be to put teh right side fields in a supreport,...
0
9726
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10384
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10395
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9204
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7667
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6887
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5553
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
3865
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
3017
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.