i am using Access2000. Currently i had a main form call "frmDownloa d" and sub form "fsubAdmmission ". Under the fsubAdmmission, i do have another sub form "fsubHospit al". Once i link my application to database A, when "frmDownloa d" loaded, it does successfully create "fsubAdmmission " object and i am able to assign "fsubAdmmission .form.recordsou rce".
Once i link my application to database B, when "frmDownloa d" loaded, it failed to assign the recordsource to "fsubAdmmission " due to the "object does not exist or closed". I do debug the application with both of the database. Once execute on docmd openform "frmDownloa d", , ,"" , i found tat at the first line "frmDownloa d" loaded (form_load) function, i can access the "fsubAdmission. form.recordsour ce" at immediate window (for database A).
when i link my application to database B, once execute on docmd openform "frmDownloa d", , ,"" at the first line of form_load function of frmDownload, when i want to access to the "fsubAdmission. form.recordsour ce" at immediate window, it does hit error ("object was not created or closed").
i have no idea on wat problem is this..since it does not execute any my own code on the first line of form_load function. i feel that one of the problem is because the subform didnt loaded once the mainform was loaded. Is there any method i can debug into docmd.openform command ? Or anyone know what exactly the problem was? i will appreciate if anyone can give me some suggestion. Thank
1 2711 NeoPa 32,564
Recognized Expert Moderator MVP
No, you can't debug into a library routine unless you have the code for it available (IE It's one of your own).
As to why it behaves differently in DatabaseA from DatabaseB that is hard to tell. From what you've told us there is no known difference between the two.
If this were true then there would be no problem. There must be a difference between the two databases and we can't tell you anything about it because we don't have any information about it.
Sorry to be unable to help.
Sign in to post your reply or Sign up for a free account.
Similar topics |
by: Aravind |
last post by:
Hi folks.
I have 2 forms, frmMain and frmHistory.
frmHistory has a field called Return.
frmMain has a command button called "Due Today" (which will henceforth
be called as DT), which opens frmHistory and filters it to display
records where the value of Return is Null
|
by: Kurt Blom |
last post by:
Hi all,
In my current project, I open other forms from within my 'Parentform'.
In this parentform, dates of the selected forms are queried. Each time,
the parentform (frmParentForm) is minimized (DoCmd.Minimize) when a
'subform' is openend. When the report for the specific date is
completed, I close the subform by a close button:
Private...
|
by: Lyn |
last post by:
Hi,
I have a Search input form which collects from the user a person's name. I
am using LIKE with a "%" suffix in the SQL so that the user does not have to
type in the full name. When they hit the Search button, a query is run to
search the Person table for a match. This produces a recordset (I am using
ADO).
If the RecordCount is zero,...
|
by: Thelma Lubkin |
last post by:
formA determines some_where and some_value and issues
docmd.close ,Me
docmd.openform "formB", , ,some_where, , ,some_value
formB receives the correct some_where and some_value
After completing its work formB issues
docmd.close ,Me
docmd.openform "formA"
|
by: John Welch |
last post by:
I have a command button with the following code:
DoCmd.OpenForm "frmSearchAssignments", , , "SearchAssignmentID = 1"
(SearchAssignmentID is the PK, auto number)
When it runs, the form opens but shows all records, rather than going to the
one I want. If I look at the form in design view, it shows
'SearchAssignmentID=1' (without quotes) as the...
| |
by: Mike |
last post by:
I am trying to open a search results form based on the input from a
prompt form. I am using the following code:
--- Begin Code ---
Private Sub btnSearch_Click()
'Dim Variable and assign data
Dim srce As String, fstnme As String, lstnme As String, bidnum As String
srce = Me.Source_Control
If Not IsNull(Me.Text18) Then
|
by: rdsandy |
last post by:
Hi,
I am using Access 2003. I have a list box on a form which has 6 columns in it, with data taken from a table. I have an unbound text box which holds the ID number for the selected item in the list box. I have a command button which I want to use to open another form on that record. At the moment it opens the other form but only to the...
|
by: erict |
last post by:
Access 2002-2003 runtime
App works fine on single proc machines but we are rolling out a tech refresh and we found this case where the code appears to simply slip through the open form command and the form never opens.
If Not IsNull(frmPODetails.Form!txtPONumber) Then
MsgBox "frmPurchaseOrders Open Form"
...
|
by: Belimisimus |
last post by:
Hi!
On load event of "tasks" form I have code
If gbl_GrupID = 2 Then
cbo_AssignedTo.Enabled = False
Form.RecordSource = "SELECT Tasks.* FROM Tasks, WHERE AssignedTo = " & gbl_ContaktID & ";"
End If
End Sub
|
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...
|
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...
| |
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. ...
|
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...
|
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...
|
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...
|
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...
|
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...
| |