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

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 1309
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.google. 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
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...
0
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...
6
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...
0
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...
0
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...
3
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...
7
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): ...
8
by: dmp | last post by:
What are Linked list? Please somebody show some ready made programs of linked list
0
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...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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...

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.