473,396 Members | 2,037 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,396 software developers and data experts.

Edit Multi-Column Listbox Value

I have a 3 column listbox in MS Access form. My problem is that I have to change some values of listbox columns without changing other column's value.

How do I change single column value in only in the listbox not whole row?
May 6 '10 #1
8 14019
NeoPa
32,556 Expert Mod 16PB
That will depend on the Row Source Type. Please try to describe your situation more fully before posting your question.
May 6 '10 #2
@NeoPa
Thanx for reply Sir.

Row Source Type is 'Value List'.
I try to explain my problem

Example:-
(Billing Form)

_SrNo_Name_Amount___
| 1 | A | | |
| 2 | B | II |
| 3 | C | III |
| 4 | D | IV |
|____________________ |

This is the listbox with 3 columns. In the first column ‘Sr No.’ is Auto generated. As user fill this list, ‘Sr_No’ will add one to its last number like :-
Expand|Select|Wrap|Line Numbers
  1. Static Sr_No As Integer
  2. Sr_No = Sr_No + 1 
Till now everything works fine. Problem start when user delete any row from listbox. Suppose that user select third row that is “ 3 | C | III “. And hit delete button. Now my first column’s value look likes “1 > 2 > 4”. But first column should be like this “ 1 > 2 > 3”. How can I change ‘4’ to ‘3’ while other two column’s value should be same ‘D’, ‘IV’.

If U don't understand my concept I will give U full detail of my project. But please HELP ME !!!!!!!


Thanx in advance
May 6 '10 #3
NeoPa
32,556 Expert Mod 16PB
This isn't something I ever find myself doing, so I'm not very sure, but I expect the .Column() property would give you access to that value.
May 6 '10 #4
@NeoPa
U R right sir, we can access to that value by using .column() property but we can't write to this value
As I do :-
Expand|Select|Wrap|Line Numbers
  1. Me.List0.Column(0, Me.List0.ListIndex) =3
But Access give me this message "Run-time error '424':
Object requied"

Please HELP ME ??????????????????????/
May 6 '10 #5
NeoPa
32,556 Expert Mod 16PB
In that case I doubt it can be done directly. You'd need to edit the string assigned to the RowSource.

NB. Please don't shout (use all upper-case letters) and repeating so many ? characters. The only effect it has is to irritate other members. I will help where I can, but that is all.
May 7 '10 #6
Realy Good Idia. I will try and tell u about it.
May 7 '10 #7
At last i Solved my problem by adding a new single column listbox for Serial No.

Thanx for Support Mr NeoPa
May 7 '10 #8
NeoPa
32,556 Expert Mod 16PB
I'm pleased to hear you solved your problem. I'm also pleased you seem to have come up with the solution by yourself in the end. We like to help, but members finding their own solutions is always a better result. Well done.
May 7 '10 #9

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

Similar topics

1
by: don | last post by:
This is a great code developing editor which works with just about any programming language out there.... Its best feature is the way it lets you create shortcut phrases for any of your most often...
6
by: Joe | last post by:
I have 2 multi-list boxes, 1 displays course categories based on a table called CATEGORIES. This table has 2 fields CATEGORY_ID, CATEGORY_NAME The other multi-list box displays courses based on...
1
by: Prasad More | last post by:
Hello, I am trying to write a text on Multi-page TIFF image using C# and .NET GDI+. I have written following code to do this. When I execute this code I get "Invalid Parameter User. at...
8
by: Prabhat | last post by:
Hi All, Can any body help me to use the ADO Recordset in Multiuser Environment for SQL Server DB? How Can I Restrict User 2 to Open the Same Row which is Opened By User 1 and I will Display...
7
by: Bart Schelkens | last post by:
Hi, what is the best way (or the most interesting) way to make my application multi-lingual? I have french, dutch and english users and they all want the menu's and the labels,... in their...
1
by: ad | last post by:
We can only edit a row of data with GridView. How can we make a multi-row input ?
5
by: bobwansink | last post by:
Hi, I'm relatively new to programming and I would like to create a C++ multi user program. It's for a project for school. This means I will have to write a paper about the theory too. Does anyone...
0
by: artofsuntzu | last post by:
I am trying to use Win32 API in Visual Basic 6.0 to get the text from a third party program that is using an Edit Control Window within a #32770 DialogBox. But I am unable to find any SendMessage...
2
by: BillE | last post by:
I need to create a multi-line label dynamically. Since labels aren't multi-line, I'm creating a textbox and making it look like a label with the multiline property set to true. I want to...
2
by: EManning | last post by:
I posted a question on 5/5/08 asking how to trap an error caused by multiple users trying to access the same patient. Here's what I posted: "Using A2003. I've got an FE with a main form with a...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
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...
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
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,...
0
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...

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.