473,545 Members | 529 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Access 2002 Like Combobox in .NET

We are trying to rebuild a current Access 2002 (XP) mdb program to VB.NET
with a SQL database - we are having problems with a suitable combobox.
There are many threads discussing multiple column comboboxes in .NET. We
are having success with the multiple columns similar to the combobox from
Access 2002 (XP).

Our biggest problem is speed. In a form in Access 2002, our combobox is
able to load data in a table in separate Access database file in a fraction
of a second. This table is already sorted in the proper order, and has
65,000 records (almost the limit of items in the Access combobox). For this
speed test, the table consists of one field. The records are just integers
counting from 1 to 65,000. The Access combobox is filled with data by
setting the combobox.RowSou rce property to equal a SQL Select Statement:

SELECT field1
FROM table1
IN 'c:\pathto\data base.mde"

We tried to do a similar test using the VB.NET combobox with Microsoft SQL
Desktop Edition 2000. Same table as above. We tried several approaches
including binding to a DataSet, binding to an array (filled the array with
DataReader), and using the combobox.Items. AddRange(array) . The best result
we could get with the 65,000 records was to use a DataReader to fill an
Array, then use the combobox.item.a ddrange - but this was approx. 7 seconds -
still slow compared to Access, and too slow for our purpose. This 7 second
was during the AddRange step, not during the looping through the DataReader
to fill the Array. Filling the Array was very quick. All of our tests
indicate the the slow down is getting the information into the combobox, not
get the data from the database.

Is there a Microsoft suggestion get a large list of data into the combobox
quickly the way Access could do it?
Is there a third party combobox that can work in VB.NET and load the data
quickly, preferable with multiple columns?
Any other suggestions?

VB.NET solutions are preferable, but we do have VS.NET Pro 2003, so we can
support other languages as well.

Thank you for all that took the time to read this long message.

PS - it was suggested that 65,000 records are too many to be showing to a
user. The purpose of this list to allow the patient to select a
client/patient from a large and growing list in a medical lab setting.
Medical labs are always receiving new patients, and usually only see a
patients once or twice. They do need to keep the patient active in case the
patient returns.
Nov 21 '05 #1
2 1782
"SKarnis" <SK*****@discus sions.microsoft .com> schrieb
We are trying to rebuild a current Access 2002 (XP) mdb program to
VB.NET with a SQL database - we are having problems with a suitable
combobox. There are many threads discussing multiple column
comboboxes in .NET. We are having success with the multiple columns
similar to the combobox from Access 2002 (XP).

[...]

Thank you for all that took the time to read this long message.


Have a look @ one of these groups for language unrelated questions:

microsoft.publi c.dotnet.framew ork.windowsform s.controls
microsoft.publi c.dotnet.framew ork.aspnet.webc ontrols
Armin
Nov 21 '05 #2
I apoligize for not using the correct discussion group. I have reposted the
original question in microsoft.publi c.dotnet.framew ork.windowsform s.
Nov 21 '05 #3

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

Similar topics

6
4718
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
9
2866
by: Rob | last post by:
Scenario: O/S: Win XP Professional Back-end: Access 2002 on network server I have an Access 97 application, in production on our network, that takes appoximately 5 minutes to process monthly data. I find this tolerable. The Access 2002 test version, on the network, takes approximately 50
1
1552
by: Wim van Rosmalen | last post by:
Hi folks, I've upgraded MS-Access 2002 to a MS-Access Project (adp), so now I have to deal with more sophisticated queries (may I call them so?) like stored procedures. I have a form with a combobox for selections and a textbox to enter a certain value. Let us say I call the combobox @select and the textbox @find. The combobox always...
1
1627
by: Kevin Nechodom | last post by:
I have a strange environment where my MDE is being executed by both Access 2002 and 2003. I have a report, which was designed in 2003, with several calculated fields. It looks like: <Address Header stuff> <Salutation>
0
1002
by: Segfahlt | last post by:
I have an inherited comboBox that I'm using to try to make an intellisense type box in VS 2003 .Net. It works okay in VS.Net 2002. I can get it to do most of my stuff, but it's not keeping the SelectionStart and SelectionLength values I assign in my OnKeyPress event. Here is a snippet of my code. The Application.DoEvents() funcs are just so...
0
1047
by: Segfahlt | last post by:
I have an inherited comboBox that I'm using to try to make an intellisense type box in VS 2003 .Net. It works okay when compiled in VS.Net 2002. It doesn't work when compiled in VS.Net 2003. In 2003, it compiles fine with no error or warnings, but doesn't do what its supposed to. I've done some tweaking here and there, and nothing I do seems...
5
1157
by: Tom | last post by:
We currently have a rather large application that is in VB.NET 2002. We have just purchased licenses to the 2003/1.1 Framework version of Visual Studio. What kind of conversion, if any, will we need to do to move our application over to the 2003/1.1 version? We will be moving this application over to production within a couple of months, and I...
4
4526
by: sphinney | last post by:
As my Access 2002 form opens, I want to find the names of the tables in the current Access database and populate a combobox with them. Problem is, the CurrentDb.Recordsets object is empty even though I have two tables in the database. I'm using the code below, but the combobox remains empty. That's because CurrentDB.Recordsets is empty. Is...
0
2734
by: Sebastian | last post by:
Hello I develop my applications in Access 2002. My development system is running Windows XP SP2 and I have Microsoft Office XP Developer. Microsoft Office XP is at SP3. I used Inno Setup (great product) to install my applications. When the Access Runtime was needed on the system I simply ran 'accessrt.msi' from Microsoft Office Developer...
0
7398
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...
0
7656
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, 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. ...
1
7416
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...
0
5969
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
4944
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3449
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...
0
3441
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1878
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
0
701
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...

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.