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

Automation Object Error

1
Hi everyone, I know that there is a question similar to this already posted but the answer to it does not really seem to relate to my problem! So here goes...

I have a main form which has a tab control that links a number of other forms together, if the information is already in all of the corresponding tables then everything works fine but if I am entering new details then I am getting an error in 2 out of my 7 tabbed subforms.

The error I get is 'The object doesn't contain the automation object Registrations' - You tried to run a Visual Basic procedure to set a property or method for an object. However the component doesn't make the property or method available for automation operations.

I have checked the VB code behind the form and there isn't any, this doesn't happen when I click on a button of any sort as there aren't any and there are no event procedures on the form. It happens when I attempt to enter data into the child link field.

To be honest I know it's a mistake I have made as I am no expert in Access, all my tables are linked though I wont guarantee that they are all correct though someone has looked at this for me and told me they are.

What I was trying to achieve was that the primary key would extract details such as surname and first name and place them in every form as soon as the primary key is inserted, the problem is that I have the same primary key in every table and when inserted in one table it is not updating the others, so when I attempt to insert it on one of the other forms I am getting the above error.

Any help would be really appreciated as I have rebuilt this database three times now and keep getting the same problems but with different error messages and I am now really pushed for time to get it finished.
Thanks in advance

acog1
May 10 '07 #1
1 4391
JConsulting
603 Expert 512MB
Hi everyone, I know that there is a question similar to this already posted but the answer to it does not really seem to relate to my problem! So here goes...

I have a main form which has a tab control that links a number of other forms together, if the information is already in all of the corresponding tables then everything works fine but if I am entering new details then I am getting an error in 2 out of my 7 tabbed subforms.

The error I get is 'The object doesn't contain the automation object Registrations' - You tried to run a Visual Basic procedure to set a property or method for an object. However the component doesn't make the property or method available for automation operations.

I have checked the VB code behind the form and there isn't any, this doesn't happen when I click on a button of any sort as there aren't any and there are no event procedures on the form. It happens when I attempt to enter data into the child link field.

To be honest I know it's a mistake I have made as I am no expert in Access, all my tables are linked though I wont guarantee that they are all correct though someone has looked at this for me and told me they are.

What I was trying to achieve was that the primary key would extract details such as surname and first name and place them in every form as soon as the primary key is inserted, the problem is that I have the same primary key in every table and when inserted in one table it is not updating the others, so when I attempt to insert it on one of the other forms I am getting the above error.

Any help would be really appreciated as I have rebuilt this database three times now and keep getting the same problems but with different error messages and I am now really pushed for time to get it finished.
Thanks in advance

acog1
You have a refresh problem. Chances are all you need to do is set up a case statement.

you would put this on your tab control's change event.
J
Expand|Select|Wrap|Line Numbers
  1. Private Sub MyTabControl_Change()
  2. Select Case Me.MyTabControl.Value
  3. Case 0 'first tab
  4. MsgBox "refresh subformname here"
  5. Case 1 'second tab
  6. MsgBox "refresh second tab subformname"
  7. End Select
  8. End Sub
  9.  
May 12 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

17
by: Ange T | last post by:
Hi there, I'm having pain with the VB behind an Access form. The form is used to create reports in Excel based on the details entered in the form. This has always worked without error on my...
25
by: Neil Ginsberg | last post by:
I have a strange situation with my Access 2000 database. I have code in the database which has worked fine for years, and now all of a sudden doesn't work fine on one or two of my client's...
12
by: Cheval | last post by:
Has anyone had any problems with inter-office automation between MS Word and MS Access in Office 2003? I have recently installed office 2003 in a new folder and have left the older office 2000...
1
by: Jimmer | last post by:
I've got what should be an easy automation problem, but the solution simply isn't coming to me. I've got several public variables set up for automation as follows: Public gappExcel As...
12
by: elziko | last post by:
I'm using late binding (I must) to automate Excel. My code opens Excel after createing and poulating some sheets. My problem is that when the user finally decides to close Excel its process is...
1
by: Bruce | last post by:
Hello, I know this must be something simple I'm overlooking but I can't get err.raise inside a class to return anything but 440 - automation error. For example, if I create the following test...
0
by: Sharath | last post by:
Quality Globe is Glad to Offer you the Fast Track course on Automation, QTP Basics and Advanced, and Quality Center Starting Date: June 4th, 2007 Timings: 10 AM to 3:30 PM Duration: 50 Hours ...
0
by: Sharath | last post by:
"Inspired" by the huge success of our first two automation fast track batches We are forced to start third fast track automation batch ...
1
by: =?Utf-8?B?VGVycnk=?= | last post by:
Hi all, I am trying to access a .net assembly from VB6. I have created the . Net assembly, exposed it to COM and registered it. I am able to add a reference to it in my VB6 project. When I...
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
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
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
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
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.