Hi all
I split a database in a table-part and a all-the-rest-part and linked
the tables, but my code adding records to a table crashes on
Set rs = db.OpenRecordse t("tblDeltakels e", dbOpenTable,
dbAppendOnly)
I think, some places where I do the same thing to another table it just
says "Invalid Operation", I press OK and nothing happens, and I am just
as wise as to what operation was invalid.
I guess the OpenRecordset needs to know that it's supposed to open a
table that is linked, but I have no idea how to tell it that.
Anyone?
K 8 2081
k wrote: Set rs = db.OpenRecordse t("tblDeltakels e", dbOpenTable, dbAppendOnly)
Use dbOpenDynaset with linked tables.
--
--
Lyle
--
Thanks
But "method or data member not found"
I guess I should replace my line right before the openrecordset:
Set db = CurrentDb
with something else, to indicate that I am opening another db?
I'm a bit clueless here, nubi with this coding stuff in access
K
k wrote: Thanks
But "method or data member not found"
I guess I should replace my line right before the openrecordset: Set db = CurrentDb
with something else, to indicate that I am opening another db?
I'm a bit clueless here, nubi with this coding stuff in access
K
Are you sure you have a reference to DAO? What choices do you get from
the intellisense dropdown?
--
This sig left intentionally blank
I guess I'm in over my head here, my db was working fine, but I wanted
to split it to easier make updates.
I seem not to be able to answer your questions...
Q: Are you sure you have a reference to DAO
A: I'm not sure, I don't know what you mean, and really never got the
hang of DAO...
Q: What choices do you get from the intellisense dropdown?
A: What is the intellisense dropdown?
k wrote: I guess I'm in over my head here, my db was working fine, but I wanted to split it to easier make updates. I seem not to be able to answer your questions...
Q: Are you sure you have a reference to DAO A: I'm not sure, I don't know what you mean, and really never got the hang of DAO...
If it was working before it must have been there, the method of data
access you're using is DAO.
Q: What choices do you get from the intellisense dropdown? A: What is the intellisense dropdown?
When you type something like "db." in the code window you get a dropdown
list of methods and properties for the database object.
--
This sig left intentionally blank
> When you type something like "db." in the code window you get a
dropdown list of methods and properties for the database object.
-- This sig left intentionally blank
Thanks for hanging in there with me...
The dropdown doesn't give me a .opendynaset but the openrecordset is
there.
I paste the whole code-piece here, what i does, or what it did before i
split my db, was to add a number of records to a many-to-many relation
table (tbl1), based on the selected items in a list.
Dim db As DAO.Database
Dim rs As DAO.Recordset
Dim varEvent As Variant
Dim ctlEvent As Control
Set ctlEvent = Me.List1
Set db = CurrentDb
Set rs = db.OpenRecordse t("tbl1", dbOpenTable, dbAppendOnly)
For Each varEvent In ctlEvent.ItemsS elected
rs.AddNew
rs.Fields("fiel d1") = Me.ID
rs.Fields("fiel d2") = ctlEvent.ItemDa ta(varEvent)
rs.Update
Next varEvent
rs.Close
Set rs = Nothing
Set db = Nothing
I guess the first to codelines is my reference to DAO...
K
k wrote: When you type something like "db." in the code window you get a
dropdown
list of methods and properties for the database object.
-- This sig left intentionally blank
Thanks for hanging in there with me...
The dropdown doesn't give me a .opendynaset but the openrecordset is there.
Set rs = db.OpenRecordse t("tbl1", dbOpenDynaset, dbAppendOnly)
--
This sig left intentionally blank
Trevor Best wrote: Set rs = db.OpenRecordse t("tbl1", dbOpenDynaset, dbAppendOnly)
-- This sig left intentionally blank
Thank you Trevor!
K This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Andante.in.Blue |
last post by:
Hello everyone! I've been working with a problematic legacy database
for a while. While I am still fairly new to Access, the more I work
with the database, the more problems I've uncovered. Unfortunately,
most of these problems lie in the ways of architecture. A lot of the
tables are designed with no primary keys, and a number of them using
the text names in place of the PK-FK relationships.
For instances, I have one table called ...
|
by: Danny J. Lesandrini |
last post by:
I know this has been discussed before, as I've seen the Google posts,
but they all leave me with an unanswered question:
Does my DAO code executed in the front end cause the back end to bloat?
(May also substitute UPDATE and/or DELETE queries for DAO code.)
I was just brought on to a project with Access 97 where the all data is
kept on the server. It doubles in size each day, from 80 mb to 160 mb.
The data file contains only tables...
|
by: Mike Ridley |
last post by:
I am trying to create a new query using 3 linked tables. As soon as I
add the third table to the design grid Access crashes.
I have looked in the newsgroup and find that there have been problems
with linked tables and Access 2000 but the threads are dated about 3
years ago.
I am running XP Home Edition Version 2002 SP1 and Access 2002
(10.2627.2625).
I have checked on the Microsoft Upgrade site and although upgrades are
available they...
|
by: Andi Plotsky |
last post by:
I have a database (2000.mdb) which links to my data tables (Data2000.mdb).
The database has a Main Menu screen (not a switchboard - a custom one). I
need to import records from 5 text files into the 5 different Tables in
Data2000.mdb.
Here was my plan:
Create various Import specs in Data2000.mdb
Create a Macro (in Data2000.mdb) which calls each of the specs
sequentially.
|
by: Gary |
last post by:
I have a backend Database with just one main table in it (no form/queries
etc)
The network pc's have the front end database (with all the forms,
queries,macros etc). These front ends are linked to the table belonging to
the backend database.
Records have been entered since January this year. However, as soon as the
size of the backend database exceeded 1 gigabyte I got concerned that it
would possibly encounter a corruption of the data...
| |
by: MP |
last post by:
Greets,
context: vb6/ado/.mdb/jet 4.0 (no access)/sql
beginning learner, first database, planning stages
(I think the underlying question here is whether to normalize or not to
normalize this one data field - but i'm not sure)
:-)
Background info:
|
by: alingsjtu |
last post by:
Hello, every body.
When execute dynamic generated multiple OPENQUERY statements (which
linkes to DB2) in SQLServer, I always got SQL1040N The maximum number
of applications is already connected to the database. SQLSTATE=57030.
Background:
I created a linked server to DB2 8.1 database which called
GRR_DB2Server. In my stored procedure p_FetchRawData, I need to read
some data from this linked server GRR_DB2Server and insert them into
|
by: Jim Devenish |
last post by:
I have a split front end/back end system. However I create a number of
local tables to carry out certain operations. There is a tendency for
the front end to bloat so I have set 'compact on close'
I think that I have read in some threads (althoug I cannot find them
now) that others place such tables in a local, linked database. I
could do this but I am interested to know what would be the advantages.
And disadvantages, if any.
Any...
|
by: David |
last post by:
On Wed, Jun 18, 2008 at 11:16 AM, M.-A. Lemburg <mal@egenix.comwrote:
Thanks for your reply.
How do you maintain foreign key references with this approach?
eg, you have these 4 tables:
table1
- id
|
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: 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: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |