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

Empty Listbox crashing Access 2002 SP1

AAJ
Hi all

I have a listbox on a form. If I set its rowsource directly, and the
query in the rowsourse returns no data, then the displayed listbox is
empty (exactly as you would expect)

However....

If I programatically set the rowsource, and the query returns no
records then access completely crashes and switches its self off,
asking me if I want to send an error report.

Does anyone know why this is and how to get around it.

Also, does anyone know where can I get the latest service pack from, I
just tries microsofts site and it said the page was unavailable.

thanks

Andy

Nov 13 '05 #1
6 2448
Download Sp3 for Office Xp from:
http://support.microsoft.com/kb/307841

Also download SP8 for JET 4 from:
http://support.microsoft.com/kb/239114

After you have installed both service packs, uncheck the Name AutoCorrect
boxes in Access under:
Tools | Options | General
Explanation of why:
http://allenbrowne.com/bug-03.html

Then compact the database:
Tools | Database Utilities | Compact

If the problem persists, try getting Access to rebuild the database for you,
by following the steps for the first symptom on this article:
Recovering from Corruption
at:
http://allenbrowne.com/ser-47.html

If you still have the problem after that, post the SQL statement you are
attempting to assign to the rowsource of the listbox, and tell us whether
there is any subform associated with this form.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"AAJ" <an********@fdtsolutions.com> wrote in message
news:11**********************@l41g2000cwc.googlegr oups.com...
Hi all

I have a listbox on a form. If I set its rowsource directly, and the
query in the rowsourse returns no data, then the displayed listbox is
empty (exactly as you would expect)

However....

If I programatically set the rowsource, and the query returns no
records then access completely crashes and switches its self off,
asking me if I want to send an error report.

Does anyone know why this is and how to get around it.

Also, does anyone know where can I get the latest service pack from, I
just tries microsofts site and it said the page was unavailable.

thanks

Andy

Nov 13 '05 #2
AAJ
Many thanks

The SP seems to have stopped the crashing, but I'm still having a few
other little odd problems.

Its very strange, it all seems to be linked to the empty recordset and
the listbox, but I can't every remember having this problem before..

thanks for the help, there might well be another post today if I can't
fix the anomolies!!!

cheers

Andy

Nov 13 '05 #3
aaj
Incase its of interest to anyone, (and if anyone knows why I would be
interested in a reason)...

On the parent form (which is bound to a recordset), I had the allow
additions set to false as I would never be adding records from the parent.

In desperation I set it to true, and it seems to have solved the problem.

thanks again

Andy

"AAJ" <an********@fdtsolutions.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Many thanks

The SP seems to have stopped the crashing, but I'm still having a few
other little odd problems.

Its very strange, it all seems to be linked to the empty recordset and
the listbox, but I can't every remember having this problem before..

thanks for the help, there might well be another post today if I can't
fix the anomolies!!!

cheers

Andy

Nov 13 '05 #4
That's good news, Andy.

There is a subform here? I'll bet bananas to bottles that this is the know
issue with Access 2002 and 2003 where Access crashes if you do not have the
foreign key field represented by a text box in the subform.

Whatever field is named in the LinkChildFields property of the subform
control needs to be present as a text box in the subform. That way, thte
LinkChildFields property refers to an object of type Textbox, instead of an
object of type AccessField, and the problem disappears.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"aaj" <aa*@aaj.com> wrote in message
news:1109065085.ab87ad3fd70fc5912934aa7b8bf9790f@t eranews...
Incase its of interest to anyone, (and if anyone knows why I would be
interested in a reason)...

On the parent form (which is bound to a recordset), I had the allow
additions set to false as I would never be adding records from the parent.

In desperation I set it to true, and it seems to have solved the problem.

thanks again

Andy

"AAJ" <an********@fdtsolutions.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Many thanks

The SP seems to have stopped the crashing, but I'm still having a few
other little odd problems.

Its very strange, it all seems to be linked to the empty recordset and
the listbox, but I can't every remember having this problem before..

thanks for the help, there might well be another post today if I can't
fix the anomolies!!!

cheers

Andy

Nov 13 '05 #5
On Tue, 22 Feb 2005 23:55:12 +0800, Allen Browne
<Al*********@SeeSig.Invalid> wrote:
There is a subform here? I'll bet bananas to bottles

Bananas to Bottles???

Darryl Kerkeslager
Nov 13 '05 #6
aaj
Its was an odd one

just in case anyone is interested....

Its a simple main form that has some bound parent data. On this main form
is a list box and an image box (no subforms)

the list box is bound to a recordset of filenames, and it uses the listboxes
after update event to change the photo to the selected filename.

To add a new filename to the list box, a button is clicked,it runs an
update statement, then forces the listbox to requery, same goes for delete.

it worked fine while data exisited in the recordset the listbox is bound to,
but if the recordset had no data (i.e. no photos had been added) all the
objects on the ecreen (text boxes, inages, listboxes) just disappeared.
Before applying the SP it just crashed.

Anyways, installing the SP and setting the allow additions worked fine.

I am sure its similar to the subform problem you described below, because
the requery of the listbox is dependant on the key of the main form.

thanks for the help chaps

"Allen Browne" <Al*********@SeeSig.Invalid> wrote in message
news:42***********************@per-qv1-newsreader-01.iinet.net.au...
That's good news, Andy.

There is a subform here? I'll bet bananas to bottles that this is the know
issue with Access 2002 and 2003 where Access crashes if you do not have
the foreign key field represented by a text box in the subform.

Whatever field is named in the LinkChildFields property of the subform
control needs to be present as a text box in the subform. That way, thte
LinkChildFields property refers to an object of type Textbox, instead of
an object of type AccessField, and the problem disappears.

--
Allen Browne - Microsoft MVP. Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.

"aaj" <aa*@aaj.com> wrote in message
news:1109065085.ab87ad3fd70fc5912934aa7b8bf9790f@t eranews...
Incase its of interest to anyone, (and if anyone knows why I would be
interested in a reason)...

On the parent form (which is bound to a recordset), I had the allow
additions set to false as I would never be adding records from the
parent.

In desperation I set it to true, and it seems to have solved the problem.

thanks again

Andy

"AAJ" <an********@fdtsolutions.com> wrote in message
news:11**********************@c13g2000cwb.googlegr oups.com...
Many thanks

The SP seems to have stopped the crashing, but I'm still having a few
other little odd problems.

Its very strange, it all seems to be linked to the empty recordset and
the listbox, but I can't every remember having this problem before..

thanks for the help, there might well be another post today if I can't
fix the anomolies!!!

cheers

Andy


Nov 13 '05 #7

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

Similar topics

3
by: Siobhan Perricone | last post by:
I have a user who is having a problem with an access database that I didn't build and haven't had anything to do with in the past. The database opens up to the switchboard, and she clicks through...
1
by: Alan Brasel | last post by:
I have an Access database that I have been using for over a year. My company just replaced my computer with a "New and Improved" computer, and they also installed Access 2002 ( I was using 2000). ...
0
by: LesM | last post by:
This is a change of behaviour between Access 2000 SP3 and Access 2002 SP3. I have Progress table that is linked via ODBC into Access using OpenLink Lite for Progress 9.0b. For over a year, using...
3
by: joe | last post by:
I actually have 2 questions: 1) Is databinding the fastest way to load a listbox from sqlserver? speed is crucial and I want to make sure i'm populating it the fastest way i can 2) Also,...
4
by: Peter Gibbs | last post by:
I need some help with this problem. I'm using Access 2002 with XP. My problem is with a 2-column listbox. My VBA code puts text data into the listbox. The problem is that the text data...
2
by: deluded.soul | last post by:
Hi everyone, I have a database table with first name and last name entries. I am using a ListBox to show these values. Now what I want is that the columns adjust their width automatically...
1
by: aaron | last post by:
Hello folks, Has anyone ever experienced the Access 2002 runtime crashing when the "Compact on Close" option is set for an MDE file? We are currently having this problem on a number of...
18
by: Ljordan2k6 | last post by:
Hi. First post here, so I apologize ahead of time if it isn't the best-formatted post. I am working on a form that has a listbox (named LstCustID) that is bound to an access table (named...
2
by: bplantes | last post by:
Hi All, I am new to Access programming and it has been a long time since I have done any programming at all, so I am a bit rusty. I am building a form in Access 2002 that displays a list of...
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
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?
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
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
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
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.