473,379 Members | 1,190 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,379 software developers and data experts.

Conversion from string "ProfileID = " to type 'Double' is not valid on UPDATE line

dataAdapter2.Fill(ds2, "USERS")
Dim dataTable2 As DataTable = ds2.Tables("USERS")
Dim UserID As Long = CLng(dataTable2.Rows(0)(0))
Dim UserDesc As String = dataTable2.Rows(0)(1)
Dim UserEnabled As Boolean = dataTable2.Rows(0)(2)
Dim UserPassword As String = dataTable2.Rows(0)(3)
Dim UserProfileId As Long = CLng(dataTable2.Rows(0)(4))
Dim UserEmailAddress As String = dataTable2.Rows(0)(5)
Dim UserMobileNumber As String = dataTable2.Rows(0)(6)
Dim UserHomeNumber As String = dataTable2.Rows(0)(7)
Dim UserOfficeNumber As String = dataTable2.Rows(0)(8)
Dim UserLGASuburb As Long = CLng(dataTable2.Rows(0)(9))
Dim UserRGACity As Long = CLng(dataTable2.Rows(0)(10))
Dim UserState As Long = CLng(dataTable2.Rows(0)(11))
Dim UserPostalCode As String = dataTable2.Rows(0)(12)
Dim UserlastUpdatingDate As String = dataTable2.Rows(0)(13)
Dim UserDeletionDate As String = dataTable2.Rows(0)(14).ToString
Dim NoofRowsinTable1 As Integer = dataTable2.Rows.Count
Dim newpassword As String = Trim(Me.TextBox5.Text)
dataAdapter2.UpdateCommand = conn2.CreateCommand()
dataAdapter2.UpdateCommand.CommandText = _
"UPDATE Users SET " + _
" DESC = " & UserDesc & " Enabled = " & UserEnabled & " Password = " & newpassword & " " & + _
"ProfileID = " & UserProfileId & " ContactEmailAddress = " & UserEmailAddress & " " & + _
"ContactHomeNumber = " & UserHomeNumber & " ContactOfficeNumber = " & UserOfficeNumber & " " & + _
"ContactLGASuburb = " & UserLGASuburb & " ContactRGACity = " & UserRGACity & " " + _
"ContactState = " & UserState & "ContactPostalCode = " & UserPostalCode & " " & + _
" LastUpdatingDate = " & UserlastUpdatingDate & " " + _
"DeletionDate = " & UserDeletionDate & " WHERE ID = " & UserID & ";"
Dim NoofRowsinTable2 As Integer = dataTable2.Rows.Count
dataAdapter2.Update(ds2, "Users")
ds2.AcceptChanges()
Aug 18 '10 #1
0 773

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

Similar topics

5
by: Eric A. Forgy | last post by:
Hello, I am just learning Java and am trying to write a method that does something like //=========================================== public Static List find(double array,double val,String...
15
by: Greenhorn | last post by:
Hi, when a function doesn't specify a return type ,value what value is returned. In the below programme, the function sample()is returning the value passed to 'k'. sample(int); main() { int...
33
by: baumann.Pan | last post by:
hi all, i want to get the address of buf, which defined as char buf = "abcde"; so can call strsep(address of buf, pointer to token);
7
by: Jim Bancroft | last post by:
Hi everyone, A basic one here, I think. I haven't found the pattern yet, but sometimes when I cast a variable to another type using the "C" style cast operator the compiler refuses to play...
4
by: dc15 | last post by:
For an intro to VB project I have to write a program which takes an amount of Miles, Yards, and Inches.....and converts it to metric (KM, M, and CM) when all values are entered to the input text...
10
by: dba123 | last post by:
Why am I getting this error for Budget? Error: An exception of type 'System.FormatException' occurred in mscorlib.dll but was not handled in user code Additional information: String was not...
10
by: lovecreatesbeauty | last post by:
Is parameter type conversion required for the 2nd argument on printf("%p", (void *)&i); ? But one would never call memcpy like: memcpy((void *)pi, (void *)pj, sizeof *pj); /*memcpy((void *)pi,...
1
by: tankbattle | last post by:
That is, what's the difference between <complexType name="Address" final="restriction"> <sequence> <element name="name" type="string"/> <element name="street" type="string"/> <element...
3
by: blazeboy | last post by:
Hello, I am using a SQL data source to insert records into a table. The table uses a GUID as the primary key (GoalEventID), and a GUID for a second field (GoalID) as a foreign key. When I call...
19
by: Daniel Pitts | last post by:
I have std::vector<Base *bases; I'd like to do something like: std::for_each(bases.begin(), bases.end(), operator delete); Is it possible without writing an adapter? Is there a better way? Is...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.