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

Subdatasheets. subforms and record selection

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, a date, an event name and a venue
name (Event Names and Venue Names are IDs to load of other data on
other tables but again, that's not part of the problem).

Simplified the table looks like this...

ID Date Event Venue
01 06/08/2005 Lost SE1
02 06/08/2005 RetroVert Boat Party (TowerBridge)
03 06/08/2005 Fabric Fabric
04 06/08/2005 Jaded Egg
05 13/08/2005 AsOne End, The
06 13/08/2005 Fabric Fabric
07 13/08/2005 Saiko! Medicine Bar
08 20/08/2005 Fabric Fabric
09 20/08/2005 Haywire SE1

Currently I can select an entry on my list box to find the full
details of the record in question. The list box entries look basically
like the table above but sorted by event then date.

However, I would prefer a 'subdatasheet' style selection process that
may look something similar to this...

[+] AsOne
[+] Fabric
[+] Haywire
[+] Jaded
[+] Lost
[+] RetroVert
[+] Saiko!

Which could expand when needed like this...

[+] AsOne
[-] Fabric
06/08/2005 Fabric
13/08/2005 Fabric
20/08/2005 Fabric
[+] Haywire
[+] Jaded
[+] Lost
[+] RetroVert
[+] Saiko!

If I then selected the "13/08/2005 Fabric" entry, then it would find
the record in question.

Is this possible? Would love to know how.

I know how to create subforms with datasheets, I know how to use
subforms to select records, I know how to create queries with
subdatasheets and have worked out how to create the effect from the
single table but just can't seem to work out how to glue the whole
thing together.

Am I barking up the wrong tree? Is there a control (3rd party maybe)
that does essentially the same job?

---
Dale Walker
London Techno Events
dale@sorted,org
http://london.sorted.org
Nov 13 '05 #1
4 4468
What about having two tables on your form, linked 1:M, where the main table
lists the Events and the second table shows the associated Venues, Dates,
etc., for each Event?

"Dale Walker" <da**@sorted.org> wrote in message
news:ek********************************@4ax.com...
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, a date, an event name and a venue
name (Event Names and Venue Names are IDs to load of other data on
other tables but again, that's not part of the problem).

Simplified the table looks like this...

ID Date Event Venue
01 06/08/2005 Lost SE1
02 06/08/2005 RetroVert Boat Party (TowerBridge)
03 06/08/2005 Fabric Fabric
04 06/08/2005 Jaded Egg
05 13/08/2005 AsOne End, The
06 13/08/2005 Fabric Fabric
07 13/08/2005 Saiko! Medicine Bar
08 20/08/2005 Fabric Fabric
09 20/08/2005 Haywire SE1

Currently I can select an entry on my list box to find the full
details of the record in question. The list box entries look basically
like the table above but sorted by event then date.

However, I would prefer a 'subdatasheet' style selection process that
may look something similar to this...

[+] AsOne
[+] Fabric
[+] Haywire
[+] Jaded
[+] Lost
[+] RetroVert
[+] Saiko!

Which could expand when needed like this...

[+] AsOne
[-] Fabric
06/08/2005 Fabric
13/08/2005 Fabric
20/08/2005 Fabric
[+] Haywire
[+] Jaded
[+] Lost
[+] RetroVert
[+] Saiko!

If I then selected the "13/08/2005 Fabric" entry, then it would find
the record in question.

Is this possible? Would love to know how.

I know how to create subforms with datasheets, I know how to use
subforms to select records, I know how to create queries with
subdatasheets and have worked out how to create the effect from the
single table but just can't seem to work out how to glue the whole
thing together.

Am I barking up the wrong tree? Is there a control (3rd party maybe)
that does essentially the same job?

---
Dale Walker
London Techno Events
dale@sorted,org
http://london.sorted.org

Nov 13 '05 #2
On Fri, 5 Aug 2005 18:30:37 -0700, "Mondrogan" <mo*******@comcast.net>
wrote:
What about having two tables on your form, linked 1:M, where the main table
lists the Events and the second table shows the associated Venues, Dates,
etc., for each Event?


That was my backup plan but my form is already choc full of subforms,
linked tables and whatnot. I'm already having problems with screen
real estate and to be honest adding two tables simply for locating
particular records is going to make the whole form unuserfriendly. I
suppose I could farm off the searching functions to another form but
that's not that elegant and it adds to the amount of clicks needed to
find something. The subdatasheet subform select box just seems so much
more of an elegant way to do things.

I've managed to work out how to display a subdatasheet within a
subform (by creating a subform within a subform and then display as a
datasheet) but I'm still having difficulties with getting the main
form to display the record selected by that subform.

Nov 13 '05 #3

"Mondrogan" <mo*******@comcast.net>, haber iletisinde şunları
yazdı:bY********************@comcast.com...
What about having two tables on your form, linked 1:M, where the main table lists the Events and the second table shows the associated Venues, Dates,
etc., for each Event?

"Dale Walker" <da**@sorted.org> wrote in message
news:ek********************************@4ax.com...
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, a date, an event name and a venue
name (Event Names and Venue Names are IDs to load of other data on
other tables but again, that's not part of the problem).

Simplified the table looks like this...

ID Date Event Venue
01 06/08/2005 Lost SE1
02 06/08/2005 RetroVert Boat Party (TowerBridge)
03 06/08/2005 Fabric Fabric
04 06/08/2005 Jaded Egg
05 13/08/2005 AsOne End, The
06 13/08/2005 Fabric Fabric
07 13/08/2005 Saiko! Medicine Bar
08 20/08/2005 Fabric Fabric
09 20/08/2005 Haywire SE1

Currently I can select an entry on my list box to find the full
details of the record in question. The list box entries look basically
like the table above but sorted by event then date.

However, I would prefer a 'subdatasheet' style selection process that
may look something similar to this...

[+] AsOne
[+] Fabric
[+] Haywire
[+] Jaded
[+] Lost
[+] RetroVert
[+] Saiko!

Which could expand when needed like this...

[+] AsOne
[-] Fabric
06/08/2005 Fabric
13/08/2005 Fabric
20/08/2005 Fabric
[+] Haywire
[+] Jaded
[+] Lost
[+] RetroVert
[+] Saiko!

If I then selected the "13/08/2005 Fabric" entry, then it would find
the record in question.

Is this possible? Would love to know how.

I know how to create subforms with datasheets, I know how to use
subforms to select records, I know how to create queries with
subdatasheets and have worked out how to create the effect from the
single table but just can't seem to work out how to glue the whole
thing together.

Am I barking up the wrong tree? Is there a control (3rd party maybe)
that does essentially the same job?

---
Dale Walker
London Techno Events
dale@sorted,org
http://london.sorted.org


Nov 13 '05 #4

how to make areduction of the data base over asheet of paper
--
mostafa
------------------------------------------------------------------------
mostafa's Profile: http://www.dbtalk.net/m172
View this thread: http://www.dbtalk.net/t30310

Apr 17 '06 #5

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

Similar topics

0
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...
2
by: carmen | last post by:
i have the folowing code Dim y As New frmCobranz Dim MyReport As New RPTCobranz MyReport.DataDefinition.RecordSelectionFormula = "{CobH.RelNbr}= y.txtNoRelac.Text...
0
by: Jasper Jones | last post by:
I have a Crystal report that shows me a list of sales and which customer bought them, I would like to get a distinct list of customers, is this possible with crystal's formulas? This is my...
3
by: Alison Givens | last post by:
Hi, I want two Session values in my record selection query. The come out of an other webform. When I do it hardcoded, it works. How dow I do this with the Session values? Hardcoded: Dim...
6
by: Edgar | last post by:
Hi, I need some advise on how to automate record selection on a stored proc. Here is my situation. I have a stored proc that I used on Crystal reports with two parameters - Acctcode and...
4
by: TD | last post by:
I have a main form which is unbound. On this form I have two subforms that are linked thru an unbound textbox on the main form. Both both of the subforms are in datasheet view. This setup work...
7
by: hubs | last post by:
Hi! I am new to Access and would appreciate some help. I am develping a browser form which provides the user a view of some data (i.e. surname, firstname, dob) from a database using a query. I...
16
by: freedom | last post by:
How to use the record selection formula in CR9 programatically using vb.net? I have a combo box that displays the date. If I select date, I can generate a report based on the selected date. Thanks in...
9
by: frys | last post by:
Access 2003 Windows XP I have a form that is for tracking attendance at programs. the main form is the program information, and the sub form is the attendance information. I have 5 homes...
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
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...
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
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...
0
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...

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.