473,398 Members | 2,088 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,398 software developers and data experts.

Replacing Forms w/Unbound populating w/Query

Thank you once again for any and all assistance. I'm building an application
that's getting quite bulky due to the number of forms, macros and procedures. I
was wondering if there's a way to use 1 (one) unbound form, if all the fields
are the same for multiple forms populating them with Queries?

I have a makeshif menu form with command buttons and I would like to eliminate
all the forms and replace them with one unbound form for three areas;

Customers
Litters
Animals

Right now there are about six forms or more for each of these categories, but
all the fields and data come from the same table, just various query pulls.

Michael
Nov 13 '05 #1
4 2171
Your question is too general for a specific answer.

My question would be, perhaps, why are you using multiple forms if al the
fields are the same? If, as I could infer, only the queries differ in which
records are to be displayed, then why would you not use the same form... but
bound, not unbound... with the WhereCondition of the DoCmd.OpenForm
specifying the criteria for which records are to be displayed.
Alternatively, and perhaps more efficient, would be to create the entire SQL
statement for the RecordSource and replace the Form's RecordSource in its
Open event.

In my experience, there are few situations in which unbound forms have any
advantage over bound forms. But, perhaps you only meant a form into which
the RecordSource is inserted at runtime, not in design view?

If my understanding is not correct, please follow up to clarify.

Larry Linson
Microsoft Access MVP


"Lumpierbritches" <lu*************@aol.com> wrote in message
news:20***************************@mb-m12.aol.com...
Thank you once again for any and all assistance. I'm building an application that's getting quite bulky due to the number of forms, macros and procedures. I was wondering if there's a way to use 1 (one) unbound form, if all the fields are the same for multiple forms populating them with Queries?

I have a makeshif menu form with command buttons and I would like to eliminate all the forms and replace them with one unbound form for three areas;

Customers
Litters
Animals

Right now there are about six forms or more for each of these categories, but all the fields and data come from the same table, just various query pulls.
Michael

Nov 13 '05 #2
Larry,

As usual you are so helpful. I'm sorry for my general inference. I'm trying to
cut down on some bulk in Access 97.

I have Forms bound currently in three categories; Animal; Customers; Litters.
Each one of these forms have one table, but I have more than 4-6 bound forms,
i.e.

Animals: All; Female; Male; Sold; Deceased; For Sale; Owned; Pedigree Only. All
of these use the same table, just variations of each table created in Queries.

Customers: All; Prospects; Kennels; Brokers; Pet Stores; Purchasers.

Litter: Current; Future; Past; All

Either using bound checkboxes in the query criteria or using DateDiff to
separate data for each Query. With so many forms, the program has gone from a
small 3 meg file to almost a double. I'm wondering if by eliminating all the
excess forms and using one unbound for each, populating them in the various
categories with code would be a slimming solution? I also have the developers
edition of AC97 and intend on eventually migrating to VB.Net, since I also
purchased an MSDN subscription!

Local Kennel Breeders have asked me to build the application and they're
willing to help me debug it so it will do what they want, but I'm still
learning AC97 - 2003.
Michael
Nov 13 '05 #3
It certainly appears that you can do what you want with bound forms, and
perhaps as few as three (one for each category) for the information you
describe here. At least, my understanding of what you say is that the only
difference in the Queries would be in the criteria.

Without details of table layout and content, I can't be very specific, but
it will be a matter, I'd think, of (1) a combo box in the form header for
selecting the criteria you want to use to select the data to display, and in
the AfterUpdate, creating the WHERE clause for the RecordSource,
concatenating that with the base of the SQL for the RecordSource, and
replacing the Form's RecordSource. In those cases, where you may want to be
more specific, you might need a second Combo from which the user chooses a
particular Broker, Pet Store, or Purchaser, for example.

You'll need to learn/know/use some VBA, or hire someone who can do it, or
get very detailed in describing what you have and what you want to do in
subsequent posts.

Larry Linson
Microsoft Access MVP


"Lumpierbritches" <lu*************@aol.com> wrote in message
news:20***************************@mb-m07.aol.com...
Larry,

As usual you are so helpful. I'm sorry for my general inference. I'm trying to cut down on some bulk in Access 97.

I have Forms bound currently in three categories; Animal; Customers; Litters. Each one of these forms have one table, but I have more than 4-6 bound forms, i.e.

Animals: All; Female; Male; Sold; Deceased; For Sale; Owned; Pedigree Only. All of these use the same table, just variations of each table created in Queries.
Customers: All; Prospects; Kennels; Brokers; Pet Stores; Purchasers.

Litter: Current; Future; Past; All

Either using bound checkboxes in the query criteria or using DateDiff to
separate data for each Query. With so many forms, the program has gone from a small 3 meg file to almost a double. I'm wondering if by eliminating all the excess forms and using one unbound for each, populating them in the various categories with code would be a slimming solution? I also have the developers edition of AC97 and intend on eventually migrating to VB.Net, since I also
purchased an MSDN subscription!

Local Kennel Breeders have asked me to build the application and they're
willing to help me debug it so it will do what they want, but I'm still
learning AC97 - 2003.
Michael

Nov 13 '05 #4
lu*************@aol.com (Lumpierbritches) wrote in message news:<20***************************@mb-m07.aol.com>...
Larry,

As usual you are so helpful. I'm sorry for my general inference. I'm trying to
cut down on some bulk in Access 97.

I have Forms bound currently in three categories; Animal; Customers; Litters.
Each one of these forms have one table, but I have more than 4-6 bound forms,
i.e.

Animals: All; Female; Male; Sold; Deceased; For Sale; Owned; Pedigree Only. All
of these use the same table, just variations of each table created in Queries.

Customers: All; Prospects; Kennels; Brokers; Pet Stores; Purchasers.

Litter: Current; Future; Past; All

Either using bound checkboxes in the query criteria or using DateDiff to
separate data for each Query. With so many forms, the program has gone from a
small 3 meg file to almost a double. I'm wondering if by eliminating all the
excess forms and using one unbound for each, populating them in the various
categories with code would be a slimming solution? I also have the developers
edition of AC97 and intend on eventually migrating to VB.Net, since I also
purchased an MSDN subscription!

Local Kennel Breeders have asked me to build the application and they're
willing to help me debug it so it will do what they want, but I'm still
learning AC97 - 2003.
Michael


Okay, I'm definitely NOT Larry, but I would think the option to filter
when you open the form is the easiest. You could have an unbound
combobox or whatever on another form to collect your criteria and then
open this form from there. One form, lots of different filters
passed. Nice and flexible. I think using unbound forms is making
work for yourself. There are places for them, but you lose all the
data validation etc that goes on under the covers.
Nov 13 '05 #5

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

Similar topics

19
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
6
by: someguy | last post by:
Hi, I'm trying to accomplish the following on a form on which i have removed navigational buttons (I apologize in advance if this is too many questions); The two easy ones are.... 1) When...
3
by: Marina | last post by:
Ok here's my problem.... I have a custom dialog box that allows the user to enter information to run a Parameter Query. This works GREAT, but I need that query to show as a form, not just the...
3
by: Richard | last post by:
How is the result of query placed in a unbound textbox ? Suppose CriteriaLookups has columns TableName, KeyColumn, KeyValue, DataColumn Foo,x,11,xhat Bar,z,3,xyzzy And
6
by: ControlHead | last post by:
Hello All, I have a tricky problem. I have two forms in MS Access where the user enters information. The first form links to a table with only one record where data is entered via text boxes....
10
hyperpau
by: hyperpau | last post by:
I've been going nuts about it and I've been searching all over the forums to find answers. Can somebody please help me? I am a somehow advanced Access user with basic VBA knowledge. (No ADO or...
4
by: Susan Bricker | last post by:
I have a form that displays record information in Continuous Record display (scrollable list). One of the fields in the record is an Integer value called "rcode" (reason code). But, I don't want...
8
by: zufie | last post by:
Hi, I created some forms using the "Create form using Wizard". However, I cannot view the forms I created with Wizard unless I click on the Design View icon. I checked the forms' properties...
5
by: grahamib | last post by:
I have a form running in access 2003. The forms property is set to continuous forms so that all records from an underlying query can be diaplayed. On the form are 12 sets of fields from...
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:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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...
0
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...
0
isladogs
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 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.