In design view subform appears as a blank white rectangle (1 Viewer)

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
I have a button on my form to go to design view. When I change from form view to design view on a form with a subform, the subform usually appears as a blank white rectangle.:confused:
 

MajP

You've got your good things, and you've got mine.
Local time
Today, 18:42
Joined
May 21, 2018
Messages
8,522
That usually means the source object is open in another subform or standalone form.
 

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
Hi
I don't have any other form open. It is the frm_PartnershipDetails form
 

theDBguy

I’m here to help
Staff member
Local time
Today, 15:42
Joined
Oct 29, 2018
Messages
21,447
Hi. Do you have more than one subform on this form?
 

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
Code:
frm_Breeding_Cocks subform
qry_Breeding_Cocks

frm_Breeding_Hens subform
qry_Breeding_Hens

frm_PartnershipDetails_subform
qry_PartnershipDetails_subform
 

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
Do your queries have recordset type set as Dynaset (Inconsistent Updates)?
If so, make sure your subforms also are set exactly the same

No, all forms just Dynaset
 

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
I have tried design view with both, with and with out. this is a pop up form.

Access 2010 with no add in's
 

Attachments

  • Design View.jpg
    Design View.jpg
    100.4 KB · Views: 142
  • Form View 1.jpg
    Form View 1.jpg
    93.1 KB · Views: 103
  • Form View 2.jpg
    Form View 2.jpg
    87 KB · Views: 112

Dreamweaver

Well-known member
Local time
Today, 23:42
Joined
Nov 28, 2005
Messages
2,466
Just tried this code on the calendar example I'm working on and worked just fine with 4 subforms


DoCmd.OpenForm Me.Name, acDesign
 

Micron

AWF VIP
Local time
Today, 18:42
Joined
Oct 20, 2018
Messages
3,478
Apparently is "normal" if going from form to design view when subforms are involved (when doing so via code) - but you don't say if code is doing that or closing first. I thought you had to close first but have never coded to switch to design from form view. Idea seems odd to me. Does closing first (in code) then opening in design view solve it, or do you have to do that anyway, which means no, that's not the fix?
 
Last edited:

Dreamweaver

Well-known member
Local time
Today, 23:42
Joined
Nov 28, 2005
Messages
2,466
no you don't need to close the object acess seems to handle that
 

Dreamweaver

Well-known member
Local time
Today, 23:42
Joined
Nov 28, 2005
Messages
2,466
give the code a try past it into the onclick of the button and comment out what you have.
 

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
Code:
   DoCmd.Close acForm, Me.Name
    DoCmd.OpenForm Me.Name, acDesign
still no different.
Only way it works is if i close the form and right click on the Access Object and choose design view
 

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
this is from right click on access objects
 

Attachments

  • Form View 3.jpg
    Form View 3.jpg
    109 KB · Views: 108

Micron

AWF VIP
Local time
Today, 18:42
Joined
Oct 20, 2018
Messages
3,478
You might have to post your db for a solution. There may be something that can be discovered that is being missed. I've tried both methods and can't replicate the problem, but that is no indication that any form tested is like yours with respect to the source for the subform control, source for the subform itself, child/parent links or anything else that can cause this. I'd also guess that there's no issue if the sf is opened on its own. It could take some investigation to figure it out.
 

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
[Solved] In design view subform appears as a blank white rectangle

I was closing the form first. now every thing is ok:eek:
 

JHB

Have been here a while
Local time
Tomorrow, 00:42
Joined
Jun 17, 2012
Messages
7,732
Post you database with a few sample data, that the forms are able to load.
 

InFlight

User
Local time
Tomorrow, 10:42
Joined
Jun 11, 2015
Messages
130
Hi JHB
I have attached screen shots of before and after
With your great knowledge you must know what i mean.
 

Attachments

  • Design View.jpg
    Design View.jpg
    100.4 KB · Views: 105
  • Form View 1.jpg
    Form View 1.jpg
    93.1 KB · Views: 102
  • Form View 3.jpg
    Form View 3.jpg
    109 KB · Views: 114
  • Before change.jpg
    Before change.jpg
    27.9 KB · Views: 107
  • After change.jpg
    After change.jpg
    26.1 KB · Views: 108

Users who are viewing this thread

Top Bottom