Hi Everybody
Difficult question
Has anyone else used the "Using the Tab control as a container"
database example that comes with the above book chapter 7 on the
accompanying disc. It is a brilliant piece of design that I have used
in 2 previous projects and they have worked beautifully.
What it does is set up the tabs in a container with a different tab
for each different record in a particular field.
For example in a table of International Addresses there is a field
called "Country",
So for each different country it sets up a tab which filters the
records on the sub form to assign each record to its own country tab.
The only 2 setting you need t use in your application is to change the
code behind the form from
Table = Customers
Control = Country
I have adapted this into my own application and changed these 2 fields
to
Table = ztblProduct (Which is on a sub form)
Control =Category (Power Tool, Hand tool, Workbench etc)
That works fine. Now a step further
I have replaced ztblProduct with zqryProduct (a query) as the source
for the sub form zfrmProduct.
In zqryProduct I have the SupplierID field picking up the SupplierID
from the already open Supplier form. But no matter which way I swing
it there is always the "too few parameters error".
Strangely, it does work if you actually remove the expression from the
query zqryProduct and just put the supplierID manually, but I want it
to work dynamically, and after 5 head scratching hours I'm losing
heart.
Can anyone help
Thanks in Advance
Smiley Bob 5 1468
From first principles: they have grouped the records onto
tabs: they have grouped the records, they have grouped...
Grouping does not work on calculated fields: you get a
"too few parameters error".
Create a NEW query that only selects from your base query:
"SELECT * FROM myQuery"
and use that in zqryProduct.
New query has no calculated fields: Grouping works: tab
example works.
(david)
"Bob" <sm*******@hotm ail.com> wrote in message
news:gv******** *************** *********@4ax.c om... Hi Everybody
Difficult question
Has anyone else used the "Using the Tab control as a container" database example that comes with the above book chapter 7 on the accompanying disc. It is a brilliant piece of design that I have used in 2 previous projects and they have worked beautifully.
What it does is set up the tabs in a container with a different tab for each different record in a particular field.
For example in a table of International Addresses there is a field called "Country", So for each different country it sets up a tab which filters the records on the sub form to assign each record to its own country tab.
The only 2 setting you need t use in your application is to change the code behind the form from
Table = Customers Control = Country
I have adapted this into my own application and changed these 2 fields to
Table = ztblProduct (Which is on a sub form) Control =Category (Power Tool, Hand tool, Workbench etc)
That works fine. Now a step further
I have replaced ztblProduct with zqryProduct (a query) as the source for the sub form zfrmProduct.
In zqryProduct I have the SupplierID field picking up the SupplierID from the already open Supplier form. But no matter which way I swing it there is always the "too few parameters error".
Strangely, it does work if you actually remove the expression from the query zqryProduct and just put the supplierID manually, but I want it to work dynamically, and after 5 head scratching hours I'm losing heart.
Can anyone help
Thanks in Advance
Smiley Bob
On Tue, 11 May 2004 13:28:58 +1000, "david epsom dot com dot au"
<david@epsomdot comdotau> wrote: From first principles: they have grouped the records onto tabs: they have grouped the records, they have grouped...
Grouping does not work on calculated fields: you get a "too few parameters error".
Create a NEW query that only selects from your base query: "SELECT * FROM myQuery" and use that in zqryProduct.
New query has no calculated fields: Grouping works: tab example works.
(david)
Hi David
Thanks for your help
Like you suggested I have created a new Query with just 2 fields to
set up the tabs.
zqrySupplierPro ductSort
field 1 = SupplierID (Criteria = [Forms]![frmSupplier]![SupplierID])
field2 = SupplierCategor y
In the code behind the form:
Private Const adhcTable = "zqrySupplierPr oductSort"
Private Const adhcFieldName = "SupplierCatego ry"
But still " too few parameters"
BTW I have tried this with the "zqrySupplierPr oductSort" running in
the background but not joy there either.
I am missing some fundemental point I think.
Regards Smiley Bob
"Bob" <sm*******@hotm ail.com> wrote in message news:gv******* *************** **********@4ax. com... Hi Everybody
Difficult question
Has anyone else used the "Using the Tab control as a container" database example that comes with the above book chapter 7 on the accompanying disc. It is a brilliant piece of design that I have used in 2 previous projects and they have worked beautifully.
What it does is set up the tabs in a container with a different tab for each different record in a particular field.
For example in a table of International Addresses there is a field called "Country", So for each different country it sets up a tab which filters the records on the sub form to assign each record to its own country tab.
The only 2 setting you need t use in your application is to change the code behind the form from
Table = Customers Control = Country
I have adapted this into my own application and changed these 2 fields to
Table = ztblProduct (Which is on a sub form) Control =Category (Power Tool, Hand tool, Workbench etc)
That works fine. Now a step further
I have replaced ztblProduct with zqryProduct (a query) as the source for the sub form zfrmProduct.
In zqryProduct I have the SupplierID field picking up the SupplierID from the already open Supplier form. But no matter which way I swing it there is always the "too few parameters error".
Strangely, it does work if you actually remove the expression from the query zqryProduct and just put the supplierID manually, but I want it to work dynamically, and after 5 head scratching hours I'm losing heart.
Can anyone help
Thanks in Advance
Smiley Bob
On Tue, 11 May 2004 08:28:16 +0100, Bob <sm*******@hotm ail.com> wrote:
Hi david
I have done some experimenting, and your 1st post contained the reason
why this does not work. You can't group on a calculated field.
If I manually put the supplierID number in by hand, the tabs get set
set up grouped in the way I want.
The problems only come when I try to do this with the query
Criteria = [Forms]![frmSupplier]![SupplierID] .... No Go! Even when I
put that query as the data source for another query to be the tab set
up query.
At the moment I've put it aside and am using a combo box to sort the
records, but it would be nice...........
Anyway, Thanks for pinpointing what the problem was.
Regards Smiley Bob On Tue, 11 May 2004 13:28:58 +1000, "david epsom dot com dot au" <david@epsomdo tcomdotau> wrote:
From first principles: they have grouped the records onto tabs: they have grouped the records, they have grouped...
Grouping does not work on calculated fields: you get a "too few parameters error".
Create a NEW query that only selects from your base query: "SELECT * FROM myQuery" and use that in zqryProduct.
New query has no calculated fields: Grouping works: tab example works.
(david)
Hi David
Thanks for your help
Like you suggested I have created a new Query with just 2 fields to set up the tabs.
zqrySupplierPr oductSort field 1 = SupplierID (Criteria = [Forms]![frmSupplier]![SupplierID]) field2 = SupplierCategor y
In the code behind the form: Private Const adhcTable = "zqrySupplierPr oductSort" Private Const adhcFieldName = "SupplierCatego ry"
But still " too few parameters"
BTW I have tried this with the "zqrySupplierPr oductSort" running in the background but not joy there either.
I am missing some fundemental point I think.
Regards Smiley Bob
"Bob" <sm*******@hotm ail.com> wrote in message news:gv****** *************** ***********@4ax .com... Hi Everybody
Difficult question
Has anyone else used the "Using the Tab control as a container" database example that comes with the above book chapter 7 on the accompanying disc. It is a brilliant piece of design that I have used in 2 previous projects and they have worked beautifully.
What it does is set up the tabs in a container with a different tab for each different record in a particular field.
For example in a table of International Addresses there is a field called "Country", So for each different country it sets up a tab which filters the records on the sub form to assign each record to its own country tab.
The only 2 setting you need t use in your application is to change the code behind the form from
Table = Customers Control = Country
I have adapted this into my own application and changed these 2 fields to
Table = ztblProduct (Which is on a sub form) Control =Category (Power Tool, Hand tool, Workbench etc)
That works fine. Now a step further
I have replaced ztblProduct with zqryProduct (a query) as the source for the sub form zfrmProduct.
In zqryProduct I have the SupplierID field picking up the SupplierID from the already open Supplier form. But no matter which way I swing it there is always the "too few parameters error".
Strangely, it does work if you actually remove the expression from the query zqryProduct and just put the supplierID manually, but I want it to work dynamically, and after 5 head scratching hours I'm losing heart.
Can anyone help
Thanks in Advance
Smiley Bob
> No Go! Even when I put that query as the data source for another query to be the tab set up query.
When all else fails.... create a table to write the criteria to.
Update the criteria table as required.
(david)
"Bob" <sm*******@hotm ail.com> wrote in message
news:9m******** *************** *********@4ax.c om... On Tue, 11 May 2004 08:28:16 +0100, Bob <sm*******@hotm ail.com> wrote:
Hi david
I have done some experimenting, and your 1st post contained the reason why this does not work. You can't group on a calculated field.
If I manually put the supplierID number in by hand, the tabs get set set up grouped in the way I want.
The problems only come when I try to do this with the query Criteria = [Forms]![frmSupplier]![SupplierID] .... No Go! Even when I put that query as the data source for another query to be the tab set up query.
At the moment I've put it aside and am using a combo box to sort the records, but it would be nice...........
Anyway, Thanks for pinpointing what the problem was.
Regards Smiley Bob
On Tue, 11 May 2004 13:28:58 +1000, "david epsom dot com dot au" <david@epsomdo tcomdotau> wrote:
From first principles: they have grouped the records onto tabs: they have grouped the records, they have grouped...
Grouping does not work on calculated fields: you get a "too few parameters error".
Create a NEW query that only selects from your base query: "SELECT * FROM myQuery" and use that in zqryProduct.
New query has no calculated fields: Grouping works: tab example works.
(david)
Hi David
Thanks for your help
Like you suggested I have created a new Query with just 2 fields to set up the tabs.
zqrySupplierPr oductSort field 1 = SupplierID (Criteria = [Forms]![frmSupplier]![SupplierID]) field2 = SupplierCategor y
In the code behind the form: Private Const adhcTable = "zqrySupplierPr oductSort" Private Const adhcFieldName = "SupplierCatego ry"
But still " too few parameters"
BTW I have tried this with the "zqrySupplierPr oductSort" running in the background but not joy there either.
I am missing some fundemental point I think.
Regards Smiley Bob
"Bob" <sm*******@hotm ail.com> wrote in message news:gv****** *************** ***********@4ax .com... Hi Everybody
Difficult question
Has anyone else used the "Using the Tab control as a container" database example that comes with the above book chapter 7 on the accompanying disc. It is a brilliant piece of design that I have used in 2 previous projects and they have worked beautifully.
What it does is set up the tabs in a container with a different tab for each different record in a particular field.
For example in a table of International Addresses there is a field called "Country", So for each different country it sets up a tab which filters the records on the sub form to assign each record to its own country tab.
The only 2 setting you need t use in your application is to change the code behind the form from
Table = Customers Control = Country
I have adapted this into my own application and changed these 2 fields to
Table = ztblProduct (Which is on a sub form) Control =Category (Power Tool, Hand tool, Workbench etc)
That works fine. Now a step further
I have replaced ztblProduct with zqryProduct (a query) as the source for the sub form zfrmProduct.
In zqryProduct I have the SupplierID field picking up the SupplierID from the already open Supplier form. But no matter which way I swing it there is always the "too few parameters error".
Strangely, it does work if you actually remove the expression from the query zqryProduct and just put the supplierID manually, but I want it to work dynamically, and after 5 head scratching hours I'm losing heart.
Can anyone help
Thanks in Advance
Smiley Bob
On Thu, 13 May 2004 09:40:59 +1000, "david epsom dot com dot au"
<david@epsomdot comdotau> wrote: No Go! Even when I put that query as the data source for another query to be the tab set up query.
When all else fails.... create a table to write the criteria to. Update the criteria table as required.
(david)
Thanks David.
I shall duck out of the wife's shopping trip this Saturday and spend
some time at home to try and put that one into action.
Regards Smiley Bob This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Uttam |
last post by:
Hello,
I am using the code from Chapter 17 specifically the code from the
font frmListFonts in my application.
I have taken care to copy all the relevant modules / class modules
into the respective files / folders etc. Nevertheless, I get the
following error when I start my application:
Compile error; Sub or Function not defined
|
by: Mark Lees |
last post by:
How does one increase their Access skills?
I'm creating a basic DB for a non-profit organization. I would
classify myself as an advanced beginner.
I've got some help books but it seems they will only take me so far.
Some of the threads I've read here are way over my head.
How do I become better?
|
by: Adonis Walmsley-McCarthy |
last post by:
Hello all,
I have been asked to design a database in MS Access 2000. One of the
requirements is that there is a calendar that displays its data in the form
of a timeline. Would an ActiveX control sort this out? If so, where would I
get one that could do this?
Thanx in advance,
Adonis.
|
by: Galina |
last post by:
Hello
I have a very complex database application, which have been working
fine for several years in Access 97. Now I had to convert it into
Access 2000.
The main form (course) has got 2 subforms. One subform (course
occurrence) has got 4 subforms of its own, another subform (course web
description) has got 1. The main form has got navigation buttons,
occurrence subform has got navigation buttons (there can be several
occurrences of the...
|
by: Frederick Noronha \(FN\) |
last post by:
---------- Forwarded message ----------
Solutions to Everyday User Interface and Programming Problems
O'Reilly Releases "Access Cookbook, Second Edition"
Sebastopol, CA--Neither reference book nor tutorial, "Access Cookbook,
Second Edition" (O'Reilly, US $49.95), by Ken Getz, Paul Litwin, and
Andy Baron, delivers hundreds of practical examples, up-to-date
suggestions, and handy solutions to real-world problems that Access users
and...
| |
by: Big Time |
last post by:
I'm looking into buying a book to learn Access VBA programming. I am very
familiar with Access however I am new to programming Access with VBA. Are
there any recommendations for books for beginners? I was looking at
"Beginning Access 2002 VBA" by Dave Sussman however many of the reviews are
not so flattering about this one. Any recommendations are much appreciated.
|
by: Olav.Net |
last post by:
I need to do something in Access, and would like to get good books to get me
started.
As I am a professional C++/.NET developer, I think it would have to be
relatively "intense" compared to most Access books.
It is important for me to have small practical EXERCISES and QUIZ QUESTIONS,
about like a certification book or Mathematics Text book. I usually like
books like books like Learn .in 21 days from Sams, but the one for Access
has...
|
by: i8mypnuts |
last post by:
Could someone please help? I am using the 'defaultprt.zip' tool
provided by Ken Getz to change the default printer via VBA code (code
below). My problem is that once the default printer has been changed,
Access 2003 still directs the report to the former default printer.
Access 2003 picks up the new default printer setting only after I have
reopened the application. I have checked the default printer setting in
the OS control panel and the...
|
by: gm |
last post by:
Hi;
I have written a database that tracks all the installation we have ever
done. I have a small heating company.
I have recently started keeping a directory of digital photographs of the
completed job. I can create a hyperlink button that will link to a
photgraph, but I cannot link to a specific photo of that specific job. Each
job has its' own unique identifier, I call it the GOTC number. It is a
separate field in the table of installed...
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth.
The Art of Business Website Design
Your website is...
|
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,...
|
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...
|
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules.
He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms.
Adolph will...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |