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

ListView invalid property value???

Richard Alvarez
I think my code is correct but somehow I got this invalid property value.
What could possibly be wrong? i did a review on my access tables and naming conventions but still can't find anything.

Expand|Select|Wrap|Line Numbers
  1.  Private Sub lstMaster_DblClick()
  2.     If Not (Me.lstMaster.SelectedItem Is Nothing) Then
  3.         frmNew.txtID.Text = Me.lstMaster.SelectedItem.SubItems(0) <-- error was here
  4.         frmNew.txtFName.Text = Me.lstMaster.SelectedItem.SubItems(1)
  5.         frmNew.cboPosition.Text = Me.lstMaster.SelectedItem.SubItems(2)
  6.         frmNew.txtStatus.Text = Me.lstMaster.SelectedItem.SubItems(3)
  7.         frmNew.txtRate.Text = Me.lstMaster.SelectedItem.SubItems(4)
  8.         frmNew.dtpStart.value = Me.lstMaster.SelectedItem.SubItems(5)
  9.         frmNew.dtpEnd.value = Me.lstMaster.SelectedItem.SubItems(6)
  10.         frmNew.txtAge.Text = Me.lstMaster.SelectedItem.SubItems(7)
  11.         frmNew.txtAddress.Text = Me.lstMaster.SelectedItem.SubItems(8)
  12.  
  13.         frmNew.cmdUpdate.Caption = "&Update"
  14.  
  15.         frmNew.Show
  16.         Unload Me
  17.     End If
  18. End Sub 
Apr 19 '11 #1
0 1348

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

Similar topics

1
by: David Gerstman | last post by:
I have the following code in a mult-form project: Private Sub Form_Load() sldPackets.Min = frmStartBfv.return_first() sldPackets.Max = frmStartBfv.return_last() End Sub I wish to connect the...
0
by: Robert Hooker | last post by:
I know that this question has been batted around here for a while - and I know that sample code, using reflection and poking around inside the propertygrid class, has been posted by a kind soul.......
5
by: Lance | last post by:
Is there any way to have a custom property display the window that appears when an invalid property value is entered in a PropertyGrid control? I'm refering to the window that has the title...
1
by: Alex | last post by:
Hi, what's happened to my project: each time I try to change any property of a control, I get an error message: "Invalid property value" and in details: "Object reference not set to an instance of...
1
by: Stanimir Stamenkov | last post by:
This is an issue I've got using the Xerces-J 2.7.1 release when loading the following schema: <?xml version="1.0" ?> <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"> <xs:element...
5
by: Mark Ingram | last post by:
Hi, ive written a custom control and i would like to display the "invalid property value" dialog box for certain properties on my form if the user enters a value outside the allowed range (in the...
0
by: yp.yean | last post by:
Hi, I created a custom control, and encountered a dirty property value persistence problem. I created a property with a custom class type, call SQLSettings which holds the SQL connection...
0
by: --== Alain ==-- | last post by:
Hi, i would like to custom my ListView control by making a particular property editor for ListView.Columns property. Basically, i want to allow use to choose among several types of columns...
8
by: Dean Slindee | last post by:
I have a form whose Property value I need to get at from a class (contained in another project, same solution). Here is the form's property: Private booIsInsert As Boolean = False Public...
5
by: emsik1001 | last post by:
Hi I have a few combo boxes where the match is required. When I select a value and then delete it and go to another control then I get very user unfriendly message "invalid property value". ...
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
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...
0
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,...
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...

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.