473,394 Members | 1,971 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.

Access 2007 - Max items in listbox

157 100+
I have just created a listbox function which fills different listboxes with data. Before we used a SQL wich appered in the listbox. But since we have experienced locking issues with this we converted the rowsource to valuelist and added items to the listboxes instead.

But now i have a different challende, it seems like it is a max size of the items added to the listbox. Since we have so many columns it only posts around 100 rows to the listbox before it quits. I would prefer around 1000 (from a table with 1 200 000 rows, to give you the perspective).

Is there a workaround for this challenge?
Mar 5 '10 #1
5 7360
TheSmileyCoder
2,322 Expert Mod 2GB
This is probably not the best solution, its a simple workaround. Change the listbox to a subform, with a checkbox to indicate the selected items. You will then have to write some code to store/set the selected items.
Mar 5 '10 #2
MrDeej
157 100+
TheSmileyOne: I'm sorry, but i didnt understand your post
Mar 6 '10 #3
TheSmileyCoder
2,322 Expert Mod 2GB
I presume the purpose of the listbox is to allow you to select multiple items?

If you make a continous subform, on your main form, to replace the listbox, and then add a checkbox which can indicate whether or not the particular record is selected, you will be able to select multiple items.

Now you would need some logic to keep track of which of the subrecords is selected, and store it somehow. If you want to go with an approach like this (which is really a workaround) and I understand your need for having such a listbox, then I can help you with some code.

Maybe you should start be describing why you need to have 1000 items shown in a listbox. What are you trying to accomplish?
Mar 6 '10 #4
MrDeej
157 100+
Ok.

The form with the big listbox on it is used to display all products-transactions that have been done. We have 900 different produkts and each product have 10 different lokations which they can be in our production process.




The yellow fields is used to filter the list, either based on [field].number, [field].[product name], [field].[type of product],.........,[field].[transaction timestamp]

Like this for example




This we use to track the product if there are any abnormalities to the process from ordering to finished production. When we do this we mostly use the product number to se all the transactions that have been done, sometimes we have to be able to search trough alot of rows to find the cause, and sometimes we just want to se the last ones. We also sort by lokation instead of product number often.

This is the main function of the list, and i have never seen a form which gives the same kind of advantages in information viewing like this.

We also can dobbelclick on the list and a product information form appears which shows all data on the spesific product:

Mar 6 '10 #5
TheSmileyCoder
2,322 Expert Mod 2GB
Could you not make the list as a datasheet, and then add filtering options to a set of textboxes? (I don't really know Access 2007 and whats added in that, so maybe there is an easier way)

Im not sure if this limit your seing in your valuelist can be worked around within the valuelist, or if the correct choice is to use a datasheet, or convert your list back to being SQL based, and solve the locking issue.

With what I understand your need to be:
1) The ability to view and filter several records
2) The ability to select a single record, and view further details about that in a SEPERATE form

With my knowledge of Access 2003, I think you should be using a datasheet type form, instead of a listbox, unless there are some fancy new features in 2007 for listboxes.
Mar 7 '10 #6

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

Similar topics

10
by: SueB | last post by:
Hi. Is there a way to "unselect" items in a listbox, programmatically? Here's what I want to do (and I've been trying to to this while debugging the form, but I've been unsuccessful) ... I...
3
by: Alan Lane | last post by:
Hello world: I have a Parent form with a combobox, where the user selects a Contract or Estimate number. Then, on a subform, I have a listbox that gets filled with the details of the selected...
7
by: vbMark | last post by:
Here's my code: string strKeys; RegistryKey rk = Registry.CurrentUser; RegistryKey val = Registry.CurrentUser; string sLocation = "Software\\Microsoft\\Windows\\CurrentVersion \\Internet...
6
by: Valerian John | last post by:
I have a ListBox webcontrol on an aspx page. Items are added to the ListBox using client-side code. However, when the page is posted back the items are missing/not available. (It is like the...
3
by: Joey | last post by:
Hi, I'm trying to add a default item to my listbox but when I do it tells me that it's not defined, could someone tell me the syntax I need to use to get the listbox control to display a default...
5
by: Eddie Clark | last post by:
I'm trying to access the items in a listbox from a client-side vb script. <asp:listbox id="ListBox1" style="Z-INDEX: 101; LEFT: 16px; POSITION: absolute; TOP: 120px" runat="server" Width="400px"...
4
by: Ron | last post by:
I've got a listbox that holds a list of groups. Users can select a group, hit the remove button and the group should be removed from the listbox. The only problem is that no matter which group you...
14
by: Paul_Madden via DotNetMonster.com | last post by:
Basically I have a listbox to which I add simple STRING items- I have a progress bar which I increment whenever I populate another portion of the complete set of items I wish to add. What I observe...
0
by: Matt | last post by:
Hello! I have a user control (ascx) which simply has a couple textboxes and a listbox... On a page that has a could of them, dynamically created, I am having a weird problem with the listbox.....
1
by: divya | last post by:
Hello, I used the below code to move selected items between two listboxes Left and Right:- <%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestPopup.aspx.cs" Inherits="TestPopup" %> ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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
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...
0
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.