473,803 Members | 4,157 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Subdatasheets - How to use in subform?

I've figured out how to insert subdatasheets into tables and queries - just
open the table/query, select subdatasheet from the Insert menu, and play
around with the Link Child/Link Master fields until you get what you're
looking for. Easy enough.

But how do I use these in my forms? I tried dragging a table with a
subdatasheet directly onto a form in design view, but when I opened the
form, no little crosses. I don't want to give my users direct access to the
tables. How do I get subdatasheets into a subform? Is there a way to open
a table/query with a subdatasheet inside a form? Other alternatives?

Thanks in advance.
Nov 13 '05 #1
2 25561
To get a subdatasheet into a form, you need to create a subform in Datasheet
view. Create a second form to use as the subform, set it to datasheet view,
and drag/drop it into the main form. Set the Child/Master links as
appropriate.

--
Wayne Morgan
MS Access MVP
"deko" <www.clearpoint systems.com@use _contact_form.c om> wrote in message
news:u9******** ********@newssv r21.news.prodig y.com...
I've figured out how to insert subdatasheets into tables and queries -
just
open the table/query, select subdatasheet from the Insert menu, and play
around with the Link Child/Link Master fields until you get what you're
looking for. Easy enough.

But how do I use these in my forms? I tried dragging a table with a
subdatasheet directly onto a form in design view, but when I opened the
form, no little crosses. I don't want to give my users direct access to
the
tables. How do I get subdatasheets into a subform? Is there a way to
open
a table/query with a subdatasheet inside a form? Other alternatives?

Thanks in advance.

Nov 13 '05 #2
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Both the form & the subform have to be datasheets. The way I do it is
create the 2 forms making sure the only view possible is Datasheet; then
open the main form in design view & drag the subdatasheet form onto the
main form.

In Acc2000 and Acc2002 I've found that sometimes the "little cross"
doesn't show up when the form opens! I've done things to the forms
(which I don't remember what) and the cross appears. Hmm... Not sure
what causes that. Maybe someone else knows.

--
MGFoster:::mgf0 0 <at> earthlink <decimal-point> net
Oakland, CA (USA)

-----BEGIN PGP SIGNATURE-----
Version: PGP for Personal Privacy 5.0
Charset: noconv

iQA/AwUBQeAqF4echKq OuFEgEQIORQCeNq 9EdQmS1WAqkMASc sN8RF5VVeoAniIV
7hyg2bxs8mwM60q h1GXE87E4
=vVn9
-----END PGP SIGNATURE-----
deko wrote:
I've figured out how to insert subdatasheets into tables and queries - just
open the table/query, select subdatasheet from the Insert menu, and play
around with the Link Child/Link Master fields until you get what you're
looking for. Easy enough.

But how do I use these in my forms? I tried dragging a table with a
subdatasheet directly onto a form in design view, but when I opened the
form, no little crosses. I don't want to give my users direct access to the
tables. How do I get subdatasheets into a subform? Is there a way to open
a table/query with a subdatasheet inside a form? Other alternatives?

Nov 13 '05 #3

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

Similar topics

15
24886
by: Rey | last post by:
Howdy all. Appreciate your help with several problems I'm having: I'm trying to determine if the Visit subform (subformVisits) has a new record or been changed, i.e. dirty. The form that contains the subform is named Clients. I have this code in the Add Client btn: If Forms!Clients.subformVisits!VisitDirty = True Then MsgBox "Visit subform is dirty!"
1
2336
by: edself | last post by:
I have created a form with a subform that displays the results of a query in datasheet view. I'd like to be able to expand subdatasheets for each record listed in the subform datasheet. The query itself has the "+" signs that allow me to see the subdatasheets. However, when I view the same query via the subform, the "+"s are missing. How can I get the "+"s to appear in the subform datasheet?
25
10275
by: Lyn | last post by:
Hi, I am working on a genealogy form. The only table (so far) lists everybody in the family, one record per person. Each record has an autonum ID. The parent form (frmMainForm) displays the data in each record, which includes the ID of the father and the mother (who also have records in the table). One record per form. I have a Tab Control in the form, and in one of the tabs I have a subform (sfmSiblings) in which I wish to list...
4
7022
by: Dave Boyd | last post by:
Hi, I have two very similar forms each with a subform. The main form gets a few fields from the user and passes this back to a query that the subform is bound to. The requery is done when the user enters the last qualifying field on the main form. In one case this works fine, the subform shows the data the user wants to update -- which means showing all the data put in previously (ie showing this via the requery and the continuous...
4
4511
by: Dale Walker | last post by:
I've got a form that currently has a list box used to "find a record on my form" but the list in it is far too long and consists of fields of repeating data. Is there a way of creating a subform to do the same job that is in datasheet view with a collapsible subdatasheet? The main form is based on a table consisting of dates, events and venues (plus a lot of other guff not needed to explain this little problem). Each record has an ID,...
2
5824
by: ivrguru | last post by:
All, Since upgrading to Access 2003 from 2002, I've noticed that all of the linked table subdatasheets I had set up in 2002 with simple relationships are now not working in 2003. Since the majority of what I do with Access is simple inserts and edits, having to bounce around multiple tables and "find" the rows based on the previous table's PK in a list of thousands, makes 2003 completely unusable. Any suggestions on how to fix this? Thanks!
6
5981
by: DMUM via AccessMonster.com | last post by:
Hello I am trying to pass the name of my subform to a function/sub but I can't seem to get it to work. I am using an autokey function (ctrl E) to unlock text boxes on a subform. I have a few forms in the database that will use this function, so I need to be able to tell the code which form to unlock. What I have is as follows: Public Function akeyEdit()
4
6395
by: Sean | last post by:
Hi, all, In a table I can easily get those expanding nodes (+ and - signs) to expand/collapse subdatasheets. How can I get those in forms? Thanks, Sean
0
30393
by: Gordon Padwick | last post by:
A form contains controls, one or more of which can be other forms. A form that contains another form is known as a main form. A form contained by a main form is known as a subform. A subform itself can contain other forms, sometimes known as subsubforms. This article deals only with main forms and their immediate subforms. The books about Access I’ve read contain some useful information about subforms, but don’t adequately cover the matter of...
0
9703
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9564
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10316
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...
1
10295
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10069
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
9125
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...
0
6842
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
5629
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
3
2970
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.