473,378 Members | 1,482 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.

A2K REPOST - all controls on subform disappear after delete

[This is still causing me grief; any ideas???? - I thought a Requery would
fix this but to no avail]
If I create 2 or more records in my subform and I then delete the main
record, then all the controls on my subform disappear.

Yet if there is only one record in the subform then it gets deleted ok and
the controls are still there ready to await further input.

Further info;

Cascading Deletes are on.
The subform Cycle property is set to Current Record.
Several fields in the table underlying the subform have default values.

Importantly I notice that if there is another main record before the one I
delete, then the subform displays ok.

Any ideas? This one is really driving me nuts!

thanks
Martin
Nov 12 '05 #1
4 2471
"Deano" <de*********@hotmail.com> wrote in message
news:wA******************@wards.force9.net...
If I create 2 or more records in my subform and I then delete the main
record, then all the controls on my subform disappear.

Yet if there is only one record in the subform then it gets deleted ok and the controls are still there ready to await further input. [snip]


Are you sure they are not just scrolled up off screen?
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #2

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:bo*************@ID-98015.news.uni-berlin.de...
"Deano" <de*********@hotmail.com> wrote in message
news:wA******************@wards.force9.net...
If I create 2 or more records in my subform and I then delete the main
record, then all the controls on my subform disappear.

Yet if there is only one record in the subform then it gets deleted ok

and
the controls are still there ready to await further input. [snip]


Are you sure they are not just scrolled up off screen?


Thanks for the reply Rick. No I should have mentioned it's not a continuous
form. If I exit the form and re-enter then all is well.
The only thing I can think of doing is to suppress screen updating, close
the form, reopen the form and then Echo on again.
Nov 12 '05 #3
"Deano" <de*********@hotmail.com> wrote in message
news:E6******************@wards.force9.net...

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:bo*************@ID-98015.news.uni-berlin.de...
"Deano" <de*********@hotmail.com> wrote in message
news:wA******************@wards.force9.net...
If I create 2 or more records in my subform and I then delete the main record, then all the controls on my subform disappear.

Yet if there is only one record in the subform then it gets deleted
ok and
the controls are still there ready to await further input. [snip]
Are you sure they are not just scrolled up off screen?


Thanks for the reply Rick. No I should have mentioned it's not a

continuous form. If I exit the form and re-enter then all is well.
The only thing I can think of doing is to suppress screen updating, close
the form, reopen the form and then Echo on again.


Does the subform allow additions? When you delete the main record, are you
left positioned at a different main record or the blank new record
position?

The reason I ask is because a form with no current record to display AND
which doesn't allow new records to be inserted will appear totally blank
(no controls, labels, etc.).
--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 12 '05 #4

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:bo*************@ID-98015.news.uni-berlin.de...

Does the subform allow additions? When you delete the main record, are you left positioned at a different main record or the blank new record
position?

The reason I ask is because a form with no current record to display AND
which doesn't allow new records to be inserted will appear totally blank
(no controls, labels, etc.).


Cheers Rick, that was it.

I paid a developer to look at this and he didn't catch it properly! (:

Thanks for you help!
Nov 12 '05 #5

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

Similar topics

0
by: Deano | last post by:
If I create 2 or more records in my subform and I then delete the main record, then all the controls on my subform disappear. Yet if there is only one record in the subform then it gets deleted...
3
by: Uwe Range | last post by:
Hi to all, I am displaying a list of records in a subform which is embedded in a popup main form (in order to ensure that users close the form when leaving it). It seems to be impossible to...
3
by: Maria | last post by:
Is there another way to delete the current record in a subform from the main form, another subform or a sub-subform other than setting focus on a field in the subform and using run command...
5
by: Lyn | last post by:
Hi, I have a form which contains a number of subforms in different pages of a tab control. In the detail section of each subform, I list records related to the main form record, but from...
2
by: Susan Bricker | last post by:
I went back to read my post and found an error in my description ... here is the post, again, corrected: The following error: "The current field must match the join key '?' in the table that...
2
by: Suzanne | last post by:
Hi all, I'm reposting this message as I'm experiencing this problem more and more frequently : I really hope someone out there can help me as I've been tearing my hair out on this one for a...
2
by: Rich | last post by:
Can a vb.net form contain a subform? If yes, how is this done? Maybe I am going about my issue the wrong way. I start an asynchronous procedure from my main form - invoke a routine on a...
15
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
8
by: BASSPU03 | last post by:
I'm using Access 2003 on a Windows XP O/S. I've made two copies of Form1 so that there're are 3 forms: 1) Form1 2) Form2 3) Form3 Essentially, they all write to the same Table1.
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
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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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...

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.