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

Form fails to release control of table

I recently posted a question regarding a table built using an action query
in VBA. I am still having trouble. I have tried saving a record as suggested
by one post.

The problem

A form uses the new table as its recordsource. However, even when the form
is closed using either the close button on the form title bar or using the
docmd.close the form fails to release its connection to the table making it
locked and unable to be dropped or edited prior to the next create table sql
command.

I have looked everywhere for a solution without success.

Any suggestions?
Nov 12 '05 #1
3 3912
It usually helps us to help you if you post some code...

That said, I suspect that you are not unloading the form from memory, merely
hiding it. Look up "Unload" in help.

P
"Mike" <re******@hotmail.com> wrote in message
news:3f********@dnews.tpgi.com.au...
I recently posted a question regarding a table built using an action query
in VBA. I am still having trouble. I have tried saving a record as suggested by one post.

The problem

A form uses the new table as its recordsource. However, even when the form
is closed using either the close button on the form title bar or using the
docmd.close the form fails to release its connection to the table making it locked and unable to be dropped or edited prior to the next create table sql command.

I have looked everywhere for a solution without success.

Any suggestions?

Nov 12 '05 #2
The code I am using on the close button is as follows:

Private Sub cmdMenu_Click()

Unload "frmViewDetails"

DoCmd.Close
DoCmd.OpenForm "frmMenu"

End Sub

Private Sub cmdViewList_Click()

DoCmd.Close
DoCmd.OpenForm "frmListPatientOrders"

End Sub

I thought the Unload even took place before the Close so would think that
the form is unloaded at this point. Is that wrong?

Mike

"Phobos" <la******@spammers.co.uk> wrote in message
news:ma********************@brightview.com...
It usually helps us to help you if you post some code...

That said, I suspect that you are not unloading the form from memory, merely hiding it. Look up "Unload" in help.

P
"Mike" <re******@hotmail.com> wrote in message
news:3f********@dnews.tpgi.com.au...
I recently posted a question regarding a table built using an action query in VBA. I am still having trouble. I have tried saving a record as

suggested
by one post.

The problem

A form uses the new table as its recordsource. However, even when the form is closed using either the close button on the form title bar or using the docmd.close the form fails to release its connection to the table making

it
locked and unable to be dropped or edited prior to the next create table

sql
command.

I have looked everywhere for a solution without success.

Any suggestions?


Nov 12 '05 #3
In the previous post there is a line in the cmd_Menu event that should not
be there. I was testing the Unload and of course the syntax is wrong and sis
not work.

"Mike" <re******@hotmail.com> wrote in message
news:3f******@dnews.tpgi.com.au...
The code I am using on the close button is as follows:

Private Sub cmdMenu_Click()

Unload "frmViewDetails"

DoCmd.Close
DoCmd.OpenForm "frmMenu"

End Sub

Private Sub cmdViewList_Click()

DoCmd.Close
DoCmd.OpenForm "frmListPatientOrders"

End Sub

I thought the Unload even took place before the Close so would think that
the form is unloaded at this point. Is that wrong?

Mike

"Phobos" <la******@spammers.co.uk> wrote in message
news:ma********************@brightview.com...
It usually helps us to help you if you post some code...

That said, I suspect that you are not unloading the form from memory,

merely
hiding it. Look up "Unload" in help.

P
"Mike" <re******@hotmail.com> wrote in message
news:3f********@dnews.tpgi.com.au...
I recently posted a question regarding a table built using an action query in VBA. I am still having trouble. I have tried saving a record as

suggested
by one post.

The problem

A form uses the new table as its recordsource. However, even when the form is closed using either the close button on the form title bar or using the docmd.close the form fails to release its connection to the table
making it
locked and unable to be dropped or edited prior to the next create
table sql
command.

I have looked everywhere for a solution without success.

Any suggestions?



Nov 12 '05 #4

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

Similar topics

4
by: Chris | last post by:
Dear all, I would like to figure out a way to add controls to a form using specs stored in a table. Any assistance in fleshing this idea out would be greatly appreciated. I'm using VB6. ...
2
by: John Beschler | last post by:
I have a c# function that runs fine in VS.Net when in debug mode; however, when I switch to Relase mode or compile the app, the function fails with "object refernce not set". Here is the whole...
4
by: CompGeek | last post by:
Hi there, I am trying to load a file with 1729 records into a DB2 UDB EEE 7.1 DataBase (on AIX 4.3) which is across two partitions. The partitioning key is BI_INSTITUTIONAL_KEY which is a BIGINT...
13
by: MLH | last post by:
I have a form with two controls: !! - combo box !! - text box A button on the form tries to run this SQL when clicked... INSERT INTO BodyMsgsSent (ToWhom, BodyText) SELECT DISTINCTROW !! AS...
8
by: Thomas W Ping | last post by:
Putting focus in a form element like a dropdown box and using the mouse wheel - even one click forward or backward with it - cycles through every record, in that direction, until first or last...
12
by: swingingming | last post by:
Hi, in the NorthWind sample database, when clicking on the next navigation button on the new order record with nothing on the subform (order details), we got an order with nothing ordered. How can...
5
by: ortaias | last post by:
I have a form which calls up a second form for purposes of data entry. When closing the data entry form and returning to the main form, things don't work as expected. When I return to the main...
10
by: gweasel | last post by:
What is the best way to apply a Validation Rule - or rather, where is the best place to put it? Is there an advantage to putting it on the field in the table vs setting the validation rule on the...
3
by: pilnyj | last post by:
My quest is to create a function that returns a string value from a lookup table given the ID. If no match occurs, then I want to load that value into the lookup table. So here's my lookup...
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
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
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
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...
0
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,...
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.