473,395 Members | 1,622 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,395 software developers and data experts.

JET/DAO tables bound to forms in Access 2000 ADP: Anybody doing it?

In another thread, somebody ventured the idea that this was possible
under A2k's ADP but they did not sound sure of it.

Anybody done it?

My agenda is to use DAO for work tables bound to forms.
Nov 13 '05 #1
5 1639
It is possible, yes.
--
MichKa [MS]
NLS Collation/Locale/Keyboard Development
Globalization Infrastructure and Font Technologies

This posting is provided "AS IS" with
no warranties, and confers no rights.
"PeteCresswell" <Go**********@FatBelly.com> wrote in message
news:74**************************@posting.google.c om...
In another thread, somebody ventured the idea that this was possible
under A2k's ADP but they did not sound sure of it.

Anybody done it?

My agenda is to use DAO for work tables bound to forms.

Nov 13 '05 #2
"PeteCresswell" <Go**********@FatBelly.com> wrote in message
news:74**************************@posting.google.c om...
In another thread, somebody ventured the idea that this was possible
under A2k's ADP but they did not sound sure of it.

Anybody done it?

My agenda is to use DAO for work tables bound to forms.


Pete, we do this from time to time and haven't had any problems (touching
wood). It's great for batching updates back to the server. Here';s a couple
of things we do:

1. We always name the local jet file with a .dll extension, we've found
people tend to play around with these less. But of course it's really a jet
database, (.mdb) file.
2. Remember to kill the file on the way out. Also, on start-=up you need to
check if the file already exists. Now if it does exist, and if the form is
used for data entry, it might be that someone got half-way through and the
power went off. So you need some way to recover from this.
3. Also you need some home-grown locking mechanism on the server - so that
although you're not physically holding locks open, you can still cater for
the cases when two people want to edit the same data.
4. AFAIK you can use ADO or DAO recordsets to bind to the form, but I
believe that only in Access XP onwards are the ADO recordsets updateable. We
generally use DAO..
5. If you use DAO and the current workspace, (is that the correct term?)
don't close it when you exit, otherwise you can have problems the next time
you want to bind to the external database. We learnt this one the hard way.
6. You can create a design pattren for this, so that you can re-use the code
in subsequent forms. The logic is that you create an ADO recordset from the
sql server procedure that returns you records, and use this scema to
construct the tables and columns in the Jet database, then loop throught the
ADO recordset to populate it. I don't know if there's a faster way to
populate it but anyhow, that's what we do.

Nov 13 '05 #3
"John Winterbottom" <as******@hotmail.com> wrote in message
news:2i************@uni-berlin.de...
6. You can create a design pattren for this, so that you can re-use the code in subsequent forms. The logic is that you create an ADO recordset from the sql server procedure that returns you records, and use this scema to
construct the tables and columns in the Jet database, then loop throught the ADO recordset to populate it. I don't know if there's a faster way to
populate it but anyhow, that's what we do.


At this stage some of us started asking "exactly why are we using ADP's
again?" But that's another story :)
Nov 13 '05 #4
"John Winterbottom" wrote
At this stage some of us started asking
"exactly why are we using ADP's
again?" But that's another story :)


And, it is an excellent question, too.

Perhaps you should start another thread on that subject, so it'd be
"on-thread". Then again, we've never been overly strict about being
on-thread, and it is related, so, if you'd prefer, start the other story
here. <GRIN>

Nov 13 '05 #5
"Larry Linson" <bo*****@localhost.not> wrote in message
news:nK*******************@nwrddc01.gnilink.net...
"John Winterbottom" wrote
> At this stage some of us started asking
> "exactly why are we using ADP's
> again?" But that's another story :)


And, it is an excellent question, too.

Perhaps you should start another thread on that subject, so it'd be
"on-thread". Then again, we've never been overly strict about being
on-thread, and it is related, so, if you'd prefer, start the other story
here. <GRIN>

When I first heard about ADP's (when Office 2000 was released) I was very
keen on the idea but I've become somehwat less enthused as time has gone by.
One thing that really bugs me is how MS changed the startup behaviour
between 2K and XP. In Access 2K ADP's you could intercept the connection
dialog at startup and disconnect the project before running your own custom
connection code. In XP you can't. Even though you can disconnect the project
before you exit, this means that if the application ever crashes, the next
time it starts up users will get the regular Access connection dialog, which
they have to click away before they get to your own dialog. In a regular app
this is simply an annoyance, but if you are controlling Access through
automation you are sunk - there's no way to disconnect the project other
than manually opening the adp file and disconnecting it. If anyone knows a
fix for this I'd love to hear it.

Apart from that, there are one or two things I like about Access Projects,
and quite a few things for which we've had to find workarounds, but I think
for any new Access / SQL Server apps won't be using ADP's no more.
Nov 13 '05 #6

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

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
2
by: Timppa | last post by:
Hi, I have Access 2000 and now I'm converting .mdb database to .adp and Sql Server 2000. In old .mdb application I have a query which handles msysobjects table (reading forms and reports...
3
by: (Pete Cresswell) | last post by:
Seems like creating a #temp table is kind of useless because it cannot be bound to a subform. OTOH, seems like a waste of resources to populate work tables in the "real" database - both because...
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...
5
by: DFS | last post by:
Situation: Access 2003 front-end, containing links to Access 2003, SQL Server 2000, and DB2 tables. None of these tables are local. Hardware: IBM ThinkCentre, 10/100 Ethernet LAN Problem:...
2
by: Wolfgang Kreuzer | last post by:
Hello all, I am converting an Axs 2.0 application to a2k (I know A2K is not the most current version but Axs 2.0 support ended and A2K is supported in our company amd on every PC). The form is...
11
by: rkershberg | last post by:
Recently converted the entire office to Access 2003 as a by-product of upgrading all users to XP sp2 and Office 2003. My performance on the Access 2003 datasheet view of a bound (to an...
10
by: Robert | last post by:
How do you get an accurate count of the number of records returned from a query when using linked tables. I have an access 2003 database as a front end to another access 2003 database that...
2
by: M | last post by:
I have about 14 tables that I am trying to tie together in a view to see a user's status in our company. Joe User: Email - Active ADP - Active Portal - Inactive etc. We need to track...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...
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...
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...

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.