473,757 Members | 9,145 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

List box and dissapearing data

Hi There,

I have a form with some text boxes to enter search criterior and a
list box to display the results. Depending on which text boxes are
filled in the row source is given the correct query name via code.

If the list box displays 20 results - 5 fit in the box and the other
15 are found by scrolling - and all works fine. My problem lies in
that as soon as you select one of the records in the list box which
then displays full details of that entry on a sub form below the list
box starts misbehaving. If you now scroll down to view the other 15
results that were there before thay are now gone and only the 5
results that were shown in the box are left - where have all the other
results gone?

If anyone can tell me if this is a bug in access I would be greatful
and I shall have to think about using a subform to display the search
results - I would prefer to stick with the list box if possible as a
lot of other stuff within the database is already set up to work from
what ever is selected in it.

thanks for any help you can offer.

with best wishes

John Finch
Nov 12 '05 #1
1 1325
I found the answer and as I could not find any other answer to this
question that has been asked a few times on this group (short of
sending a repeated F9 keystroke to the list box on a loop - which
didn't really seem the ideal answer!) thought it best to write the
answer down for anyone to see.

There seems to be a bug in MS Access that if you set the row source
using code for a list box and there are less columns in the query
result than are expected by the list box you start getting strange
behaviour.

In my case my list box was expecting 9 columns but the query I was
setting only had 8 fields at which point all my strange disapearances
started.

thanks for reading

Regards

John

jf****@abrsm.ac .uk (John Finch) wrote in message news:<4d******* *************** ****@posting.go ogle.com>...
Hi There,

I have a form with some text boxes to enter search criterior and a
list box to display the results. Depending on which text boxes are
filled in the row source is given the correct query name via code.

If the list box displays 20 results - 5 fit in the box and the other
15 are found by scrolling - and all works fine. My problem lies in
that as soon as you select one of the records in the list box which
then displays full details of that entry on a sub form below the list
box starts misbehaving. If you now scroll down to view the other 15
results that were there before thay are now gone and only the 5
results that were shown in the box are left - where have all the other
results gone?

If anyone can tell me if this is a bug in access I would be greatful
and I shall have to think about using a subform to display the search
results - I would prefer to stick with the list box if possible as a
lot of other stuff within the database is already set up to work from
what ever is selected in it.

thanks for any help you can offer.

with best wishes

John Finch

Nov 12 '05 #2

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

Similar topics

6
3106
by: massimo | last post by:
Hey, I wrote this program which should take the numbers entered and sort them out. It doesn¹t matter what order, if decreasing or increasing. I guess I'm confused in the sorting part. Anyone has any advices?? #include <iostream> using namespace std;
0
1172
by: abigblackman | last post by:
Hi, I have a datagrid that is programatically generated with template columns. There seems to be something happening where only the last record is rendered with any data. I start by creating the template columns like this: <code> TemplateColumn tc.HeaderText = "Name";
6
4601
by: Steve Lambert | last post by:
Hi, I've knocked up a number of small routines to create and manipulate a linked list of any structure. If anyone could take a look at this code and give me their opinion and details of any potential pitfalls I'd be extremely grateful. Cheers Steve
0
1823
by: drewy2k12 | last post by:
Heres the story, I have to create a doubly linked list for class, and i have no clue on how to do it, i can barely create a single linked list. It has to have both a head and a tail pointer, and each node in the list must contain two pointers, one pointing forward and one pointing backwards. Each node in the list will contain 3 data values: an item ID (string), a quantity (integer) and a price (float). The ID will contain only letters and...
0
1186
by: Freddie | last post by:
hi, i need a datagrid w/ 2 headers, the datagrid is bound if( ! IsPostBack), Ken Cox kindly shared some code that addes a new header in the ItemDataBound method, so i moved it to Page_Load, and now the last row of datagrid disappears on postback - i.e. all item rows disappera after a few postacks so far i found only this:
3
1913
by: sunburst | last post by:
I will include my code below. Is there anyone who can help me sort out this problem please? when i move from my index to the next roll over button links i am unable to keep the background as black and the text as white. the text is dissapearing. can anyone explain where I am going wrong with the coding please? thanks
7
1574
by: dangerd | last post by:
Hello, Thought I'd try this forum as I got some useful help from here before. Anyway, this is the problem; I have a simple authorisation script (in PHP): www.multidome.co.uk/test/authorisation.txt It works great locally but when I upload it no longer works well; the
8
718
by: dmp | last post by:
What are Linked list? Please somebody show some ready made programs of linked list
0
2287
by: saijin | last post by:
I'm planning to call a list of data from an XML file but when I duplicate the content inside the <data></data> it is not showing anything Here's the ActionScript 3.0 import fl.controls.ComboBox; import fl.controls.TextArea; import fl.containers.UILoader;
0
9906
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9737
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8737
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7286
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6562
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 into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5172
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3829
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
3
3399
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2698
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 effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.