473,772 Members | 2,510 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4508
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.or g> wrote in message
news:ek******** *************** *********@4ax.c om...
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*******@comc ast.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*******@comc ast.net>, haber iletisinde şunları
yazdı:bY******* *************@c omcast.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.or g> wrote in message
news:ek******** *************** *********@4ax.c om...
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
450
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
3402
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 CrystalReportViewer1.ReportSource = MyRepor when run the report the following error rais error in formula <record selection
0
4690
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 query: crReportDocument.RecordSelectionFormula = "{sales.city} = 'London')" It produces records like this
3
1349
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 strSQL As String strSQL = "ToText({AlleProductieveProjectUrenVerdeeldOverFilialen.Periode})
6
1308
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 Subacct. When a user enters ' *' on these parameter, it means to report on all accounts otherwise, report only on specific account. Here is my select statement with line numbers:
4
1550
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 great, whenever I select a record in subform1 subform2 is populated with the records for the item selected in subform1. The problem is with subform2. If, say it has three items showing, if I select the second item down the list it stays selected...
7
2760
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 am trying to replace the standard system navigation bar with my own buttons which allow the user to click on it and move the record selection to "next" or "previous". I don't know how to attatch an image file to this message which would better...
16
11649
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 advance
9
16815
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 and need to switch between each home at any given time. Currently i use a tab form with 5 subforms attached filtering the attendance data for each home. What i wish to do is select a home from a combo/list box and have 1 subform show me the data...
0
9454
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
10264
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10039
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
9914
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
8937
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
5355
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4009
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2851
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.