473,657 Members | 2,449 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

CreateTableFrom Recordset in A97... from ADH 2000

I have a database of rental units etc that I'm using the
CreateTableFrom Recordset code from ADH 2000. Well, at the moment, I'm
doing a sanity check and testing it on my computer, with A2002, but
anyway....

I'm trying to create is building by building (a table for each pair of
buildings), so the format is something like this:

Building AptNo AptType Tenant Annual Income
Rent
---------------------------------------------------------------------------
A 4 Efficiency Smith $24,000
$675
A 9 1 Bedroom Johnson $32,000
$755
<blank line>
<blank line>
B 6 Efficiency Smith $24,000
$675
B 12 1 Bedroom Johnson $32,000
$755
B 23 2 Bedroom Jones $46,000
$755

---<new page>---

okay, creating the recordset in Access is easy. Since the code in the
book uses ADO, and A97 uses DAO, can I just copy ADO 2.x (like 2.8 for
WinXP/A2002) to the machine with A97/Win98, register it and use it?

Assuming that will work... the way I was thinking of doing this was to
run the function for each building, and for the second recordset, not
include the headers/field names but throw in a couple of blank rows.

Is this sane?

(At the end I can throw in the summary info - no sweat)... It's just
Apt Size, Income Level, Count Grouped by Apt Size.

but does the rest of this sound sane?

Thanks,
Pieter
Nov 13 '05 #1
3 2160
Hi, Pieter.
Since the code in the
book uses ADO, and A97 uses DAO, can I just copy ADO 2.x (like 2.8 for
WinXP/A2002) to the machine with A97/Win98, register it and use it?
Do you have a second license for Access XP or does your EULA have a
provision for you to run the components of this software on a second
computer? The practice of copying software applications or their components
from one computer to another without a second license to run the software
and its components on the second computer is commonly called "software
piracy."

Access 97 uses Jet 3.5, which, since it predates ADO, wasn't designed to use
ADO. You run the risk of losing data, because there can easily be
incompatibiliti es between Jet 3.5 and ADO that Jet just can't work with, no
matter how many service packs have been applied.
Assuming that will work... the way I was thinking of doing this was to
run the function for each building, and for the second recordset, not
include the headers/field names but throw in a couple of blank rows.

Is this sane?
Uh, . . . no. If you intend to have a normalized relational database, then
you don't need to create a separate table for each building. A properly
normalized database will prevent anomolies, eliminate redundancies, keep the
database size down, make it easier to retrieve the data, et cetera. Blank
rows to separate the different groups of records (Bldg. A vs. Bldg. B)within
the table is not advisable.

It's difficult for me to advise you on how to modify the ADH code to suit
your needs, because I haven't seen the code. I don't know if this data
already resides in Excel spreadsheets that you need to import into Access
(or link to them), or whether the data is already in Access and you are
trying to manipulate it. I'm guessing that the data is currently in Excel
spreadsheets.

In that light, I would suggest creating a table with the first Recordset,
but instead of creating a new table with each of the subsequent Recordsets,
appending those records to this table. The newly created table should have
a few extra fields in order to be able to identify the building (building
name or city, perhaps?) and which half of the building pair (Bldg. A or B).
However, to normalize this table, I would replace the "actual building name"
(if that's what you wanted to use) with the foreign key that identifies that
building's record from a separate, related table. For example, that related
table might have the following fields and values (watch out for the word
wrap):

Field name: Data Type: Example values:
----------------------------------------------------------------------
Bldg_ID (PK) Autonumber 1
BldgName Text Hurricane Apartments
Addr Text 111 Main St.
City Text Key West
State Text FL
et cetera ...

As each record is inserted into the new table, your code would need to
identify which Bldg_ID and which half of the building pair (A or B) the
record should include for these two fields in the table.

It will be much, much easier to retrieve your data later for forms and
reports if you organize your data this way.
(At the end I can throw in the summary info - no sweat)... It's just
Apt Size, Income Level, Count Grouped by Apt Size.
If you organize your data in the way that I have described, then you can
easily and quickly create queries that calculate the summary information for
you, instead of trying to store these calculated values in your table. This
would prevent the need to update the calculated values every time you added
records or made changes to the records.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
"Pieter Linden" <pi********@hot mail.com> wrote in message
news:bf******** *************** ***@posting.goo gle.com... I have a database of rental units etc that I'm using the
CreateTableFrom Recordset code from ADH 2000. Well, at the moment, I'm
doing a sanity check and testing it on my computer, with A2002, but
anyway....

I'm trying to create is building by building (a table for each pair of
buildings), so the format is something like this:

Building AptNo AptType Tenant Annual Income
Rent
-------------------------------------------------------------------------- - A 4 Efficiency Smith $24,000
$675
A 9 1 Bedroom Johnson $32,000
$755
<blank line>
<blank line>
B 6 Efficiency Smith $24,000
$675
B 12 1 Bedroom Johnson $32,000
$755
B 23 2 Bedroom Jones $46,000
$755

---<new page>---

okay, creating the recordset in Access is easy. Since the code in the
book uses ADO, and A97 uses DAO, can I just copy ADO 2.x (like 2.8 for
WinXP/A2002) to the machine with A97/Win98, register it and use it?

Assuming that will work... the way I was thinking of doing this was to
run the function for each building, and for the second recordset, not
include the headers/field names but throw in a couple of blank rows.

Is this sane?

(At the end I can throw in the summary info - no sweat)... It's just
Apt Size, Income Level, Count Grouped by Apt Size.

but does the rest of this sound sane?

Thanks,
Pieter

Nov 13 '05 #2

"Pieter Linden" <pi********@hot mail.com> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
okay, creating the recordset in Access is easy. Since the code in the
book uses ADO, and A97 uses DAO, can I just copy ADO 2.x (like 2.8 for
WinXP/A2002) to the machine with A97/Win98, register it and use it?


Probably best to download ADO from MS (MDAC, Microsoft Data Access
Components), and also download the latest copy of Jet at the same time. You
also need to set a reference to ADO in your database, and fully reference
each of your recordset and field objects etc, so that the computer can tell
if you are using an ADODB recordset or a DAO.recordset etc.

Also, although this is quite legal and practical and the way it is designed
to work, it is also /not/ best practice. It loads two different versions of
the Jet database engine. Best practice is to use only one version of the
database engine at a time. (And very best practice with an A97 database is
to use only Jet 3.51, but that is mostly because Jet 3.51 is fast, stable,
and dependable). But there are not at present any known incompatibiliti es
between Jet 4 and Jet 3.51.

(david)
Nov 13 '05 #3
"'69 Camaro" <Fo************ **************@ Spameater.orgZE RO_SPAM> wrote in message news:<Ntu3d.197 8$Bg5.1291@trnd dc07>...
Hi, Pieter.
Since the code in the
book uses ADO, and A97 uses DAO, can I just copy ADO 2.x (like 2.8 for
WinXP/A2002) to the machine with A97/Win98, register it and use it?


Do you have a second license for Access XP or does your EULA have a
provision for you to run the components of this software on a second
computer? The practice of copying software applications or their components
from one computer to another without a second license to run the software
and its components on the second computer is commonly called "software
piracy."

Access 97 uses Jet 3.5, which, since it predates ADO, wasn't designed to use
ADO. You run the risk of losing data, because there can easily be
incompatibiliti es between Jet 3.5 and ADO that Jet just can't work with, no
matter how many service packs have been applied.
Assuming that will work... the way I was thinking of doing this was to
run the function for each building, and for the second recordset, not
include the headers/field names but throw in a couple of blank rows.

Is this sane?


Uh, . . . no. If you intend to have a normalized relational database, then
you don't need to create a separate table for each building. A properly
normalized database will prevent anomolies, eliminate redundancies, keep the
database size down, make it easier to retrieve the data, et cetera. Blank
rows to separate the different groups of records (Bldg. A vs. Bldg. B)within
the table is not advisable.

It's difficult for me to advise you on how to modify the ADH code to suit
your needs, because I haven't seen the code. I don't know if this data
already resides in Excel spreadsheets that you need to import into Access
(or link to them), or whether the data is already in Access and you are
trying to manipulate it. I'm guessing that the data is currently in Excel
spreadsheets.

In that light, I would suggest creating a table with the first Recordset,
but instead of creating a new table with each of the subsequent Recordsets,
appending those records to this table. The newly created table should have
a few extra fields in order to be able to identify the building (building
name or city, perhaps?) and which half of the building pair (Bldg. A or B).
However, to normalize this table, I would replace the "actual building name"
(if that's what you wanted to use) with the foreign key that identifies that
building's record from a separate, related table. For example, that related
table might have the following fields and values (watch out for the word
wrap):

Field name: Data Type: Example values:
----------------------------------------------------------------------
Bldg_ID (PK) Autonumber 1
BldgName Text Hurricane Apartments
Addr Text 111 Main St.
City Text Key West
State Text FL
et cetera ...

As each record is inserted into the new table, your code would need to
identify which Bldg_ID and which half of the building pair (A or B) the
record should include for these two fields in the table.

It will be much, much easier to retrieve your data later for forms and
reports if you organize your data this way.
(At the end I can throw in the summary info - no sweat)... It's just
Apt Size, Income Level, Count Grouped by Apt Size.


If you organize your data in the way that I have described, then you can
easily and quickly create queries that calculate the summary information for
you, instead of trying to store these calculated values in your table. This
would prevent the need to update the calculated values every time you added
records or made changes to the records.

HTH.

Gunny

See http://www.QBuilt.com for all your database needs.
See http://www.Access.QBuilt.com for Microsoft Access tips.

(Please remove ZERO_SPAM from my reply E-mail address, so that a message
will be forwarded to me.)
"Pieter Linden" <pi********@hot mail.com> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
I have a database of rental units etc that I'm using the
CreateTableFrom Recordset code from ADH 2000. Well, at the moment, I'm
doing a sanity check and testing it on my computer, with A2002, but
anyway....

I'm trying to create is building by building (a table for each pair of
buildings), so the format is something like this:

Building AptNo AptType Tenant Annual Income
Rent
--------------------------------------------------------------------------

-
A 4 Efficiency Smith $24,000
$675
A 9 1 Bedroom Johnson $32,000
$755
<blank line>
<blank line>
B 6 Efficiency Smith $24,000
$675
B 12 1 Bedroom Johnson $32,000
$755
B 23 2 Bedroom Jones $46,000
$755

---<new page>---

okay, creating the recordset in Access is easy. Since the code in the
book uses ADO, and A97 uses DAO, can I just copy ADO 2.x (like 2.8 for
WinXP/A2002) to the machine with A97/Win98, register it and use it?

Assuming that will work... the way I was thinking of doing this was to
run the function for each building, and for the second recordset, not
include the headers/field names but throw in a couple of blank rows.

Is this sane?

(At the end I can throw in the summary info - no sweat)... It's just
Apt Size, Income Level, Count Grouped by Apt Size.

but does the rest of this sound sane?

Thanks,
Pieter


The A97 databse is on a different computer. Yeah, I know all about
relational databases... I guess I'll just have to see if I can't
rewrite Ken's stuff in DAO... (should be interesting!)

Oh, my database is normalized - I'd use a query to get a "tabular"
dataset and then send that to Word, where I'm doing the reporting.
Nov 13 '05 #4

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

Similar topics

10
6731
by: Dagwood | last post by:
Good morning: At least it's morning where I am. :) I have a rather newbie question I'm afraid. I have VisualStudio.NET, and have installed it along with SQL server. However I can't seem to find an administration front-end to SQL, other than the VisualStudio, which is ok for creating databases and adding tables/columns. However when I go to generate create script, I'm told that I need client tools.
2
2133
by: Jay Chan | last post by:
We have just installed a SQL Server 2000 (SP 3A) onto a computer that has Windows-2003 Server on it. Now, we cannot get access to that database server from other computers. Seem like this may be an issue with Active Directory. Our network consists of Windows-2000 Servers (SP 4) and Windows-2000 workstations and Windows-XP workstations. We also have SQL Server 2000 (SP2) in three Windows-2000 servers. All work fine. Recently, we get a...
10
3842
by: noname | last post by:
MSDE 2000 Release A installed under windows 2000 pro will not communicate with SQL Server Manager nor MS Access on peer computer. Can someone help? Have set DISABLENETWORKPROTOCOLS=0 at install time. Install log shows installation successful.. Control Panel> Admin Tools> Services section shows SQL server instance running.
2
2426
by: Scott | last post by:
Any help would be grateful :-) Problem: When I test my installation of Access 2000 MDE, I get the following error: "Unrecognised Format".. This means that Access 97 cannot read Access 2000. But I was under the Impression that Access 2000, could be redistributed using Install Shield 7 and that it would not effect the workstations current status. My Current senario is:
1
1838
by: tskelley | last post by:
Something strange has happened on my computer. I am unable to link tables from SQL Server 2000. I have tried from Access 97 and 2000, but keep getting the error "The Microsoft Jet database engine could not find the object 'tablename'..." I have SQL Server 7 and SQL Server 2000 installed as an instance on the same computer. Linking has always worked fine previously, but something has obviously changes in the meantime. I tried to...
2
1310
by: N. Graves | last post by:
I'm using the replace function in an unbound text field to clean up some data. I have Access 2000 on both an XP and 2000 machines. When I use this DB on an XP machine works great last a long time.... When I put it one a 2000 machine the field display #Name? instead of the data and when I go to Properties/Control source I get an error "The object doesn't contain the Automation object 'Replace." Here is the value of Control Source...
47
4514
by: ship | last post by:
Hi We need some advice: We are thinking of upgrading our Access database from Access 2000 to Access 2004. How stable is MS Office 2003? (particularly Access 2003). We are just a small company and this is a big decision for us(!) It's not just the money it's committing to an new version of Access!
5
2853
by: Mo | last post by:
Hello all, I'm trying to set up an access 2000 .adp project connecting to a SQL server 2005 database. I can set up the connection ok, but once I have completed the setup process, I get the following error messages if I try to create any new database objects: If I try to create a new object (a view or table etc), Access tells me that I:
3
2738
by: NEWSGROUPS | last post by:
I am in the midst of trying to convert about 25 Access 2000 to Access 2003. The new environment consists of Office/Access 2003 and Outlook 2003. When converting the back ends I have no problems. When converting the front ends I get the following issues and error. If I try to import all the objects into a blank Access 2003 shell I get a missing reference error for Outlook 2000, Excel 2000, and Word 2000 or after importing all the objects...
0
8395
marktang
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...
0
8310
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
8732
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 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...
0
7330
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...
1
6166
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 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...
0
4155
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...
1
2726
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
2
1955
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1615
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.