TblOptions
OptionID
Option
There are 7 option records. If I have two subforms, how do I list the first
4 options in the first subform and the last 3 options in the second subform?
Thank You!!
Marie 5 1952
Given that we're talking about a relational database, what do you mean by
"first"? With the answer to that, we can probably help answer your question.
On Wed, 08 Sep 2004 05:56:35 GMT, "Marie" <mh*****@earthlink.net> wrote: TblOptions OptionID Option
There are 7 option records. If I have two subforms, how do I list the first 4 options in the first subform and the last 3 options in the second subform?
Thank You!!
Marie
Maria, You could design 2 queries. Set the criteria of each to pull the records you want. After
you have them setup set the recordsource of your subforms to these queries.
Hope this helps!
--
Reggie
----------
"Steve Jorgensen" <no****@nospam.nospam> wrote in message
news:o0********************************@4ax.com... Given that we're talking about a relational database, what do you mean by "first"? With the answer to that, we can probably help answer your question.
On Wed, 08 Sep 2004 05:56:35 GMT, "Marie" <mh*****@earthlink.net> wrote:
TblOptions OptionID Option
There are 7 option records. If I have two subforms, how do I list the first 4 options in the first subform and the last 3 options in the second subform?
Thank You!!
Marie
I can do the first query sorting alphabetically and getting the Top 4. How
do I design the second query to get the last three in the sort order?
Marie
"Reggie" <NoSpam_chief123101@NoSpam_yahoo.com> wrote in message
news:b4********************@comcast.com... Maria, You could design 2 queries. Set the criteria of each to pull the
records you want. After you have them setup set the recordsource of your subforms to these
queries. Hope this helps!
-- Reggie
---------- "Steve Jorgensen" <no****@nospam.nospam> wrote in message news:o0********************************@4ax.com... Given that we're talking about a relational database, what do you mean
by "first"? With the answer to that, we can probably help answer your
question. On Wed, 08 Sep 2004 05:56:35 GMT, "Marie" <mh*****@earthlink.net> wrote:
TblOptions OptionID Option
There are 7 option records. If I have two subforms, how do I list the
first4 options in the first subform and the last 3 options in the second
subform? Thank You!!
Marie
Where Table2 has a field called [n]
1st query (called query3)
SELECT TOP 4 Table2.n
FROM Table2
ORDER BY Table2.n;
2nd query
SELECT TOP 3 t2.n
FROM Table2 AS t2 LEFT JOIN Query3 AS q3 ON t2.n = q3.n
WHERE (((q3.n) Is Null))
ORDER BY t2.n;
Having said that don't forget that if there is a match for the nth place in
a SELECT TOP n you will get more than n rows, and if this match occurs in
query3 (above) and there are exactly 7 rows in your table you will get less
than 3 rows in the second query.
e.g.
If Table2 contains the following data
n
-----
z
r
c
a
v
b
t
1st query results
n
----
a
b
c
r
2nd query results
n
----
t
v
z
But if Table2 contains the following data
(note the double entry of 'r')
n
----
z
r
c
a
v
b
r
1st query results
n
----
a
b
c
r
r
2nd query results
n
----
v
z
--
Terry Kreft
MVP Microsoft Access
"Marie" <mh*****@earthlink.net> wrote in message
news:2Y******************@newsread3.news.atl.earth link.net... I can do the first query sorting alphabetically and getting the Top 4. How do I design the second query to get the last three in the sort order?
Marie
"Reggie" <NoSpam_chief123101@NoSpam_yahoo.com> wrote in message news:b4********************@comcast.com... Maria, You could design 2 queries. Set the criteria of each to pull
the records you want. After you have them setup set the recordsource of your subforms to these queries. Hope this helps!
-- Reggie
---------- "Steve Jorgensen" <no****@nospam.nospam> wrote in message news:o0********************************@4ax.com... Given that we're talking about a relational database, what do you mean
by "first"? With the answer to that, we can probably help answer your question. On Wed, 08 Sep 2004 05:56:35 GMT, "Marie" <mh*****@earthlink.net>
wrote: >TblOptions >OptionID >Option > >There are 7 option records. If I have two subforms, how do I list the first>4 options in the first subform and the last 3 options in the second subform?> >Thank You!! > >Marie >
Maria, One other thing if the option values are always the same and the same values always
represent the Top values you could do something like as the criteria for your Option field:
In ("a","b","c","d") for one of the queries and (top 4)
In ("e","f","g") for the other query.
--
Reggie
----------
"Marie" <mh*****@earthlink.net> wrote in message
news:2Y******************@newsread3.news.atl.earth link.net... I can do the first query sorting alphabetically and getting the Top 4. How do I design the second query to get the last three in the sort order?
Marie
"Reggie" <NoSpam_chief123101@NoSpam_yahoo.com> wrote in message news:b4********************@comcast.com... Maria, You could design 2 queries. Set the criteria of each to pull the records you want. After you have them setup set the recordsource of your subforms to these queries. Hope this helps!
-- Reggie
---------- "Steve Jorgensen" <no****@nospam.nospam> wrote in message news:o0********************************@4ax.com... > Given that we're talking about a relational database, what do you mean by > "first"? With the answer to that, we can probably help answer your question. > > On Wed, 08 Sep 2004 05:56:35 GMT, "Marie" <mh*****@earthlink.net> wrote: > >>TblOptions >>OptionID >>Option >> >>There are 7 option records. If I have two subforms, how do I list the first >>4 options in the first subform and the last 3 options in the second subform? >> >>Thank You!! >> >>Marie >> >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Stu Cazzo |
last post by:
I have the following:
String myStringArray;
String myString = "98 99 100";
I want to split up myString and put it into myStringArray.
If I use this:
myStringArray = myString.split(" ");
it...
|
by: Luka Milkovic |
last post by:
Hello,
I have a little problem and although it's little it's extremely difficult
for me to describe it, but I'll try.
I have written a program which extracts certain portions of my received...
|
by: oliver |
last post by:
hi there
i'm experimanting with imaplib and came across stringts like
(\HasNoChildren) "." "INBOX.Sent Items"
in which the quotes are part of the string.
now i try to convert this into a...
|
by: Will McGugan |
last post by:
Hi,
I'm curious about the behaviour of the str.split() when applied to empty
strings.
"".split() returns an empty list, however..
"".split("*") returns a list containing one empty string.
...
|
by: John Salerno |
last post by:
This is an example in the book I'm reading:
string fullName = " Edward C Koop ";
fullName = fullName.Trim();
string names = fullName.Split(' ');
string firstName = names; //...
| |
by: David Pratt |
last post by:
Hi. I am splitting a string on a non whitespace character. One or more
whitespace characters can be returned as items in the list. I do not
want the items in the list that are only whitespace (can...
|
by: Michele Petrazzo |
last post by:
Hello ng,
I don't understand why split (string split) doesn't work with the same
method if I can't pass values or if I pass a whitespace value:
>>> "".split()
>>> "".split(" ")
But into...
|
by: sck10 |
last post by:
Hello,
I have a list of email addresses that I need to send email to from the
website. I am trying to use the "Split" function to get all the To's and
then use the uBound function for the...
|
by: maxtoroq |
last post by:
I know how to work the .FindAll method of the List class, but is there
a way to split a list into 2 lists, one containing all the items that
match a certain criteria and one that doesn't?
|
by: dtex23 |
last post by:
Good afternoon all,
Question about list assignment in perl...
Given a piece of code that looks kinda like this for parsing some '|' delimited input text lines :
($var1, $var2, $var3) =...
|
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,...
| |
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...
|
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: 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...
|
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,...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
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...
| |