I have a table ("checkout") that I'm tracking equipment checkout
transaction. It has columns: checkoutid (key), checkedbyid,
checkedtoid, dateout, datein and inventoryid. When the user scans an
equipment barcode (Entry), I'm trying to check if that equipment was
previously checked out, but not properly checked back in by looking up
the inventoryid and then searching for a blank datein field. I've
declared the dataview with:
Dim dvChk As New Data.DataView(I nventoryDS.Tabl es("checkout") , "",
"inventoryi d, datein", DataViewRowStat e.CurrentRows)
dvChkRow is an integer to represent the row in the dataview that
matches my search criteria below:
dvChkRow = dvChk.Find(New Object() {Entry.Trim, System.DBNull.V alue})
The problem is, when I'm testing my code and I have a good dateout /
datein for a particular inventoryid and I fault-insert a bad one
(dateout, blank datein), dvChkRow always returns the first row in the
dataview, regardless of the presense or absence of a datein value.
I think it's something with my Find method, but I'm not exaclty sure
how to search for a null.
Regards,
Michael Banks 0 938 This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: mdb |
last post by:
I have a datagrid that is bound to a DataView, and it shows events and the
times that event started ("StartTime") and stopped ("EndTime"). If the event
has started but hasn't finished, then "EndTime" is null. When multiple lines
are displayed in the datagrid, if I sort by EndTime, then the null values end
up sorted incorrectly - they are...
|
by: Aaron Smith |
last post by:
Dim dv As DataView = New DataView(FacilitiesDS1.Facilities, "", "ID
ASC", DataViewRowState.CurrentRows)
Dim iPos As Integer = dv.Find(dr.Item("ID"))
Me.BindingContext(FacilitiesDS1, "Facilities").Position = iPos
That is the code.. dr is DataRow. If dr.Item("ID") = 3, the find will
return position 0, which it should have been 1, and if the...
|
by: Thirsty Traveler |
last post by:
I have a gridview where the datasource is bound after a selection. The
result of doing this is that sorting and paging do not work. I was given a
sample of how to resolve this, however my attempt to explicity enable
sorting failes because, unlike the sample, my sort event has a null in the
datasource and I am unsure why this is so.
Sample...
|
by: John |
last post by:
I just cannot manage to perform a SELECT query with NULL parameter...
My CATEGORY table does have one row where TCATEGORYPARENTID is null (real DB
null value).
TCATEGORYID and TCATEGORYPARENTID are uniqueidentifier columns.
My questions:
- is Type="Object", below, necessary?
- what shall I specify for DefaultValue in my function? I...
|
by: =?Utf-8?B?UmljaA==?= |
last post by:
Greetings,
I need to locate a row (or see if it exists) in a table contained in a
dataset. The DataView.Find method seems to work OK for one criteria but I
need to use 2 criterias. Is there anything in VB2005 that does was DLookUpd
does in Access - but for a table contained in a Dataset? I realize that
DLookUp works on Physical tables...
| |
by: Edwin Smith |
last post by:
Hello:
I have the following code which works on a DataGridView binding source:
private void textBox1_TextChanged(object sender, EventArgs e)
{
this.pATIENTSBindingSource.Position =
this.pATIENTSBindingSource.Position("Name", textBox1.Text);
}
|
by: luqman |
last post by:
How can I check if dv recordcount isNull ?
Best Regards,
Luqman
Function showRecords(byVal ItemID as Int16) as String
Dim SqlArg as New DataSourceSelectArguments
Dim dv As New System.Data.DataView
dv=sqlDatasource.Select(SqlArg)
|
by: Nitinkcv |
last post by:
Hi,
While trying to run my app im getting the error Could not find a part of the path "c:\inetpub\wwwroot\Do not Delete\dbglobal.config".
I checked and found that there is no Important_Do not Delete folder inside the wwwroot.
The error occurs when i try to use the following code:
//inside my test.aspx
|
by: cmrchs |
last post by:
Hello,
I have a GridView and an objectDataSource
<asp:GridView ID="GridView1" runat="server"
DataSourceID="ObjectDataSource1" AllowPaging="True" />
<asp:ObjectDataSource ID="ObjectDataSource1" runat="server"
TypeName="ProductsLib.Business.ProductsBLO"
SelectMethod="SelectProducts"
|
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...
|
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it. ...
| |
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...
|
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...
|
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...
|
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...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |