473,672 Members | 2,568 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Error: Out of range value adjusted for column 'EngrAlertForNe wQuestions' at row 1

This line of code...

Using db As New dsUsersTableAda pters.useroptio nsTableAdapter

Produces this error:

Out of range value adjusted for column 'EngrAlertForNe wQuestions' at row
1

Any idea what this means?

FYI: The dsUsersTableAda pter is part of the XSD dataset that I
automatically generated. It's defined as such...

<TableAdapter BaseClass="Syst em.ComponentMod el.Component"
DataAccessorMod ifier="AutoLayo ut, AnsiClass, Class, Public"
DataAccessorNam e="useroptionsT ableAdapter"
GeneratorDataCo mponentClassNam e="useroptionsT ableAdapter" Name="useroptio ns"
UserDataCompone ntName="useropt ionsTableAdapte r">
<MainSource>
<DbSource ConnectionRef=" MyProjectConnec tionString
(Web.config)" DbObjectName="M yProject.userop tions" DbObjectType="T able"
FillMethodModif ier="Public" FillMethodName= "Fill" GenerateMethods ="Both"
GenerateShortCo mmands="true" GeneratorGetMet hodName="GetDat a"
GeneratorSource Name="Fill" GetMethodModifi er="Public"
GetMethodName=" GetData" QueryType="Rows et" ScalarCallRetva l="System.Objec t,
mscorlib, Version=2.0.0.0 , Culture=neutral , PublicKeyToken= b77a5c561934e08 9"
UseOptimisticCo ncurrency="fals e" UserGetMethodNa me="GetData"
UserSourceName= "Fill">
<DeleteComman d>
<DbCommand CommandType="Te xt" ModifiedByUser= "false">
<CommandText>DE LETE FROM `MyProject`.`us eroptions` WHERE
((`UserOptionId ` = :Original_UserO ptionId))</CommandText>
<Parameters>
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Int64" Direction="Inpu t"
ParameterName=" Original_UserOp tionId" Precision="0" ProviderType="B igInt"
Scale="0" Size="0" SourceColumn="U serOptionId"
SourceColumnNul lMapping="false " SourceVersion=" Original" />
</Parameters>
</DbCommand>
</DeleteCommand>
<InsertComman d>
<DbCommand CommandType="Te xt" ModifiedByUser= "false">
<CommandText>IN SERT INTO `MyProject`.`us eroptions`
(`MyProjectUser Id`, `EngrAlertForNe wQuestions`, `BBTagProjectRe sults`,
`BBNotifyNewMat chingProjects`, `TPNotifyIfChan ge`, `IncludeInMyPro jectDir`,
`OptOutCommunic ation`) VALUES (:MyProjectUser Id, :EngrAlertForNe wQuestions,
:BBTagProjectRe sults, :BBNotifyNewMat chingProjects, :TPNotifyIfChan ge,
:IncludeInMyPro jectDir, :OptOutCommunic ation)</CommandText>
<Parameters>
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Int64" Direction="Inpu t"
ParameterName=" MyProjectUserId " Precision="0" ProviderType="B igInt"
Scale="0" Size="0" SourceColumn="M yProjectUserId"
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" EngrAlertForNew Questions" Precision="0"
ProviderType="T inyInt" Scale="0" Size="0"
SourceColumn="E ngrAlertForNewQ uestions" SourceColumnNul lMapping="false "
SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" BBTagProjectRes ults" Precision="0" ProviderType="T inyInt"
Scale="0" Size="0" SourceColumn="B BTagProjectResu lts"
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" BBNotifyNewMatc hingProjects" Precision="0"
ProviderType="T inyInt" Scale="0" Size="0"
SourceColumn="B BNotifyNewMatch ingProjects" SourceColumnNul lMapping="false "
SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" TPNotifyIfChang e" Precision="0" ProviderType="T inyInt"
Scale="0" Size="0" SourceColumn="T PNotifyIfChange "
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" IncludeInMyProj ectDir" Precision="0" ProviderType="T inyInt"
Scale="0" Size="0" SourceColumn="I ncludeInMyProje ctDir"
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="tr ue" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" OptOutCommunica tion" Precision="0" ProviderType="T inyInt"
Scale="0" Size="0" SourceColumn="O ptOutCommunicat ion"
SourceColumnNul lMapping="false " SourceVersion=" Current" />
</Parameters>
</DbCommand>
</InsertCommand>
<SelectComman d>
<DbCommand CommandType="Te xt" ModifiedByUser= "true">
<CommandText>SE LECT UserOptionId, MyProjectUserId ,
EngrAlertForNew Questions, BBTagProjectRes ults, BBNotifyNewMatc hingProjects,
TPNotifyIfChang e, IncludeInMyProj ectDir,
OptOutCommunica tion
FROM useroptions</CommandText>
<Parameters />
</DbCommand>
</SelectCommand>
<UpdateComman d>
<DbCommand CommandType="Te xt" ModifiedByUser= "false">
<CommandText>UP DATE `MyProject`.`us eroptions` SET
`MyProjectUserI d` = :MyProjectUserI d, `EngrAlertForNe wQuestions` =
:EngrAlertForNe wQuestions, `BBTagProjectRe sults` = :BBTagProjectRe sults,
`BBNotifyNewMat chingProjects` = :BBNotifyNewMat chingProjects,
`TPNotifyIfChan ge` = :TPNotifyIfChan ge, `IncludeInMyPro jectDir` =
:IncludeInMyPro jectDir, `OptOutCommunic ation` = :OptOutCommunic ation WHERE
((`UserOptionId ` = :Original_UserO ptionId))</CommandText>
<Parameters>
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Int64" Direction="Inpu t"
ParameterName=" MyProjectUserId " Precision="0" ProviderType="B igInt"
Scale="0" Size="0" SourceColumn="M yProjectUserId"
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" EngrAlertForNew Questions" Precision="0"
ProviderType="T inyInt" Scale="0" Size="0"
SourceColumn="E ngrAlertForNewQ uestions" SourceColumnNul lMapping="false "
SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" BBTagProjectRes ults" Precision="0" ProviderType="T inyInt"
Scale="0" Size="0" SourceColumn="B BTagProjectResu lts"
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" BBNotifyNewMatc hingProjects" Precision="0"
ProviderType="T inyInt" Scale="0" Size="0"
SourceColumn="B BNotifyNewMatch ingProjects" SourceColumnNul lMapping="false "
SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" TPNotifyIfChang e" Precision="0" ProviderType="T inyInt"
Scale="0" Size="0" SourceColumn="T PNotifyIfChange "
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" IncludeInMyProj ectDir" Precision="0" ProviderType="T inyInt"
Scale="0" Size="0" SourceColumn="I ncludeInMyProje ctDir"
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="tr ue" AutogeneratedNa me=""
DataSourceName= "" DbType="Byte" Direction="Inpu t"
ParameterName=" OptOutCommunica tion" Precision="0" ProviderType="T inyInt"
Scale="0" Size="0" SourceColumn="O ptOutCommunicat ion"
SourceColumnNul lMapping="false " SourceVersion=" Current" />
<Parameter AllowDbNull="fa lse" AutogeneratedNa me=""
DataSourceName= "" DbType="Int64" Direction="Inpu t"
ParameterName=" Original_UserOp tionId" Precision="0" ProviderType="B igInt"
Scale="0" Size="0" SourceColumn="U serOptionId"
SourceColumnNul lMapping="false " SourceVersion=" Original" />
</Parameters>
</DbCommand>
</UpdateCommand>
</DbSource>
</MainSource>
<Mappings>
<Mapping SourceColumn="U serOptionId"
DataSetColumn=" UserOptionId" />
<Mapping SourceColumn="M yProjectUserId"
DataSetColumn=" MyProjectUserId " />
<Mapping SourceColumn="E ngrAlertForNewQ uestions"
DataSetColumn=" EngrAlertForNew Questions" />
<Mapping SourceColumn="B BTagProjectResu lts"
DataSetColumn=" BBTagProjectRes ults" />
<Mapping SourceColumn="B BNotifyNewMatch ingProjects"
DataSetColumn=" BBNotifyNewMatc hingProjects" />
<Mapping SourceColumn="T PNotifyIfChange "
DataSetColumn=" TPNotifyIfChang e" />
<Mapping SourceColumn="I ncludeInMyProje ctDir"
DataSetColumn=" IncludeInMyProj ectDir" />
<Mapping SourceColumn="O ptOutCommunicat ion"
DataSetColumn=" OptOutCommunica tion" />
</Mappings>
<Sources />
</TableAdapter>
Oct 5 '08 #1
1 2288
I figured it out. For some STRANGE reason the dataset wizard changed all my
BOOLEAN fields to BYTES!!!!!

When I passed "False" to the function it passed "255" for some reason. The
MySQL db was probably expecting 1 or 0.

This is crazy!!!!
Oct 5 '08 #2

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

Similar topics

6
4739
by: Peter Frost | last post by:
Please help I don't know if this is possible but what I would really like to do is to use On Error Goto to capture the code that is being executed when an error occurs. Any help would be much appreciated. Thanks in advance
2
2705
by: dotnetnoob | last post by:
i got this program that will fetch the data in the excel spreadsheet, it was working before then i make some adjustment and it now give me an error of "Object reference not set to an instance of an object error" i can't seem to see what's wrong with my code so i'm hoping some fresh eyes can spot what's wrong or what i'm missing. the following is the code, this line strFile = CStr(xlSheet.Range("I" + CStr(Row)).Value.ToString + "\" +...
0
3231
by: zfraile | last post by:
I'm getting this error from the JIT compiler at runtime, but only on my boss' machine, not my development machine. I believe the error is generated from a call to an Excel object, but I can't tell why or what specific action on the object is causing it. We both are running version 2.0 of the .net framework with Office 2003 installed, though I am running XP and she has Win2000. Also, I do not get this error when running another sub in...
4
11329
by: Abdhul Saleem | last post by:
Hi, I am recieving error ActiveX component can't create object in the following line in the asp page. set ExcelApp = CreateObject("Excel.Application") Previously this code was working fine. Thanks in advance.
0
2945
by: forgedascendant | last post by:
Good day everyone, I am new to this site so please forgive me if this post isn't completly correct. For the past 2 weeks I have been beating my head against the wall trying to figure out what is wrong with the macro I created. The problem I am experiancing is that the range I am trying to put together does not seem to be working for some reason. My entire code is as follows: Sub Proto1() ' ' Proto1 Macro ' Macro recorded 8/30/2007...
7
54247
by: LucasLondon | last post by:
Hi, I have the code below that I adapted to loop through each column of data (Columns A to GR) to perform an a calculation based on the data in rows 2 to 31 of each column and place the calculated statistic in row 35 for each column of data. The problem is the code runs fine for the first six columns of data (i.e row 35 for columns A:F get populated with a correctly calculated statistic but code stops running at column G, and generates a...
0
1246
by: 362315 | last post by:
I am receiving the following error: Microsoft Visual Basic Run-Time error '2147467259 (80004005)': The microsoft jet database engine cannot open the file. It is already opened exclusively by another user, or you need permission to view its data. This is the code I am using, the following is assigned to a button which should send data through to an access table, however works for me, but when other users try it they get the above...
5
9950
by: Lara1 | last post by:
Hi, I'm a total beginner to VBA, so please bear with me if I seem a bit dense. What I'm Trying to Achieve I'm trying to write a procedure in Excel, which is supposed to - look at the pH values stored in column E, row by row - compare this to a threshold value of 5 - enter a string ("pH range C") in column K, if the value in column E exceeds 5.
6
11458
by: Lara1 | last post by:
I'm trying to get certain cells to show a hovering alert message when I click on them. (I don't want an error-message style box to pop up, because I'll eventually want it to show for lots of cells at once.) I recorded a macro to get the code, which I tweaked minimally, and pasted into a clean spreadsheet to test it. It seems to work beautifully. However, when I try to apply the same code within a larger programme, in a working spreadsheet,...
0
8404
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8828
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
8608
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,...
1
6238
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
4227
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...
0
4418
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2819
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
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.