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.

Query forms

Dear colleagues:

I read somewhere that you could obtain the results of a query as a form.

I have design a database for my books and waht I would like is to obtain the
results of my queries (which use parameters for language, author, genre,
etc) in the form of a bunch of the original forms I used for creating the
book entries.

I don't know if I explained the problem correctly. As a result of a query I
would obtain a selecction of the forms that comply with the query criteria.

My queries work beautifully but I am not happy with getting a table with the
results.

If this cannot be done in Access but needs Visual Basic or Visual Basic.NET
it will be okay, since I have both programs and I have a little knowledge of
them. However, at this stage, I would prefer a pure Access (with SQL)
approach.

Thanks in advance.
Luísa Lopes
no******@mail.telepac.pt
Nov 13 '05 #1
4 1685

I'll explain a little better what I want. I have this database for books.
The information about each book is entered in a form with two other
subforms - I include a lot of stuff.
If I want to know which books have references to, for instance, African
explorations, I would like the query to "choose" the complete forms
containing the books in question and present this subset to me.
If the database was an old index card file, this would be the equivalent of
picking out the relevant cards.
The way things work now I get the results in a table, with only the fields I
picked for the query, and if I want to do anything more, like adding to the
notes section of the form I have to make a note of its ID number and go to
the forms section of the mdb.
I have a feeling that waht I want is not possible. I have tried in several
ways, read a lot on the subject of databases, and found nothing similar.
Maybe something could be attempted in VB or VB.NET but I am trying in Access
(2000) at the moment because I already have most of the work done and little
time in the next months to concentrate on VB.
It is not very important, but it would be very convenient, since I am always
addind and removing stuff form the Notes and Commentaries sections of the
forms.

Thanks for your help. I'll try it, but I don't think it does what I want.

Luísa Lopes

"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message
news:ab********************************@4ax.com...

I'm not exactly sure what you are looking for here... If you are just
looking for a list of forms that have a specific name, you can do:

SELECT [Name]
FROM MSysObjects
WHERE Type=-32768 AND
[Name] Like '<whatever>'
ORDER BY [Name];

To get a list of the form names.

Do you need something more complex then that, or ??? Please explain
further.
On Tue, 28 Dec 2004 15:17:01 -0000, "Luisa Lopes"
<no******@mail.telepac.pt> wrote:
I read somewhere that you could obtain the results of a query as a form.
I have design a database for my books and waht I would like is to obtain theresults of my queries (which use parameters for language, author, genre,
etc) in the form of a bunch of the original forms I used for creating the
book entries.
I don't know if I explained the problem correctly. As a result of a query Iwould obtain a selecction of the forms that comply with the query criteria.My queries work beautifully but I am not happy with getting a table with theresults.
If this cannot be done in Access but needs Visual Basic or Visual Basic.NETit will be okay, since I have both programs and I have a little knowledge ofthem. However, at this stage, I would prefer a pure Access (with SQL)
approach.

--
A Dirty Book Is Rarely Dusty.

Nov 13 '05 #2
Luisa Lopes wrote:
I'll explain a little better what I want. I have this database for
books. The information about each book is entered in a form with two
other subforms - I include a lot of stuff.
If I want to know which books have references to, for instance,
African explorations, I would like the query to "choose" the complete
forms containing the books in question and present this subset to me.
If the database was an old index card file, this would be the
equivalent of picking out the relevant cards.
The way things work now I get the results in a table, with only the
fields I picked for the query, and if I want to do anything more,
like adding to the notes section of the form I have to make a note of
its ID number and go to the forms section of the mdb.
I have a feeling that waht I want is not possible. I have tried in
several ways, read a lot on the subject of databases, and found
nothing similar. Maybe something could be attempted in VB or VB.NET
but I am trying in Access (2000) at the moment because I already have
most of the work done and little time in the next months to
concentrate on VB.
It is not very important, but it would be very convenient, since I am
always addind and removing stuff form the Notes and Commentaries
sections of the forms.

Thanks for your help. I'll try it, but I don't think it does what I
want.

Luísa Lopes


Have you looked at the "Filter-By-Form" feature? For searching only, a form
could be based on a query combining all tables and then FBF could be used to
search against it.

It is very possible to do exactly what you're describing, but it is a fairly
advanced task to be able to show a form with subforms and have searches in the
main form be based on criteria in the subforms. While a form based on all three
tables combined would be less elegant it would allow you to to use the built in
FBF feature and would give you a partial solution with no coding at all.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com
Nov 13 '05 #3

Thank you.

I'll try that. Fortunately I had already planned to rebuild the whole thing.
The problem is that I always want a DB to do a lot of things at the same
time. I am never happy just classifying data under one category, I always
have subcategories and sub-sub-categories. Since I add to these according to
needs, things end up being difficult.

Luísa Lopes

"Rick Brandt" <ri*********@hotmail.com> wrote in message
news:33*************@individual.net...

Have you looked at the "Filter-By-Form" feature? For searching only, a form could be based on a query combining all tables and then FBF could be used to search against it.

It is very possible to do exactly what you're describing, but it is a fairly advanced task to be able to show a form with subforms and have searches in the main form be based on criteria in the subforms. While a form based on all three tables combined would be less elegant it would allow you to to use the built in FBF feature and would give you a partial solution with no coding at all.

--
I don't check the Email account attached
to this message. Send instead to...
RBrandt at Hunter dot com

Nov 13 '05 #4

Thank you.

I have never used Filter by Form, so I'll have to study a little. I have
concentrated my efforts on queries, with no results. Now I'll change tracks
and dedicate my efforts to the forms and this Filter.

Luísa Lopes

"Chuck Grimsby" <c.*******@worldnet.att.net.invalid> wrote in message
news:12********************************@4ax.com...

VB or VB.Net isn't required for this. What I posted won't help
either. When you say "Form" what you seem to be meaning is "Record In
A Form View." And if that's the case, Rick's post is dead on target
for what you want.

Create a form based on the form or query that has all the results that
you want, without doing whatever selections you need. Then use the
"Filter By Form" function within Access to get the specific results
you need. See Access Help on "Filter By Form" for more information.

Nov 13 '05 #5

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

Similar topics

1
by: Nicolae Fieraru | last post by:
Hi All, I want to find if there is a different way than the way I am working now. Lets say I have a table, tblCustomers containing address details. I want a report with all the customers from...
1
by: longtim | last post by:
I have been having endless difficulty creating reports/queries that set any relevent parameters from controls in forms. I am creating an application under access 2003 but will target access...
3
by: dskillingstad | last post by:
I'd appreciate any help I can get. I'm not sure what I'm doing wrong, but.... I've searched these groups for some solutions but no luck. I have an unbound form (frmSearch), with several unbound...
13
by: Lee | last post by:
Hello All, First of all I would like to say thank you for all of the help I have received here. I have been teaching myself Access for about 4 years now and I've always been able to find a...
4
by: Drum2001 | last post by:
SELECT ra_report.CCENTER, FROM ra_report WHERE (((ra_report.CCENTER) Like "*" & !! & "*" Or (ra_report.CCENTER) Like "*" & !! & "*" Or (ra_report.CCENTER) Like "*" & !! & "*" Or...
36
by: Liam.M | last post by:
hey guys, I have one last problem to fix, and then my database is essentially done...I would therefore very much appreciate any assistance anyone would be able to provide me with. Currently I...
5
ChaseCox
by: ChaseCox | last post by:
I am using a form to populate a query. The query is looking at around 1.4 Million records to date, every week this will only increase. Currently when I run my query from the form via a command...
9
by: Kelii | last post by:
I've been trying to get this piece to work for a few hours, but have given up. I hope someone out there can help, I think the issue is relatively straightforward, but being a novice, I'm stumped....
3
by: mtrcct | last post by:
Hi, I am working with a form that is unbound and has text boxes the user can type in wildcard search critera which feeds a query. If I leave all the text boxes blank all query recoors are returned,...
5
by: DeanL | last post by:
Hi all, I'm trying to set up a query that runs from a command button on a form (simple enough so far), what I want the query to do is take values from the fields on the form (seven fields in...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
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: 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
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
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,...
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.