473,499 Members | 1,618 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Run-time error 3003 - Storing Values from Form to Table

3 New Member
I'm encountering an error in MS Access 2007 when I try to store values from a form to a table. Here's a snippet of the VB:

Expand|Select|Wrap|Line Numbers
  1. Private Sub Submit_Update_Click()
  2. Dim DB As Database
  3. Dim new_comment As Recordset
  4. Set DB = CurrentDb()
  5.  
  6. Set new_comment = DB.OpenRecordset("tbl_History", dbOpenDynaset)
  7. new_comment.AddNew
  8.  
  9. new_comment("AWT") = AWT.Value
  10. new_comment("Issue_Criticality") = Issue_Criticality.Value
  11.  
  12. new_comment.Update
  13. new_comment.Close
  14.  
  15. Done1:
  16. AWT.Value = Null
  17. Issue_Criticality.Value = Null
  18.  
  19. Done:
  20. DB.Close
  21.  
  22. End Sub
  23.  
I do have more than two fields being stored, but it didn't seem necessary to list them all - 12 total. The idea is that the user will click the 'Submit' button (the above code being the event) and thereafter, the values get stored to the table and the form clears the entered values for a subsequent entry.

The run-time error '3003' says "Could not start transaction; too many transactions already nested". Does that mean I'm trying to store too many input values?
May 5 '10 #1
2 4290
Jim Doherty
897 Recognized Expert Contributor
Try fully qualifying your object library and closing all of your object variables down at the end of your code sequences and setting them to nothing. I suspect your are leaving all sorts of references,recordsets and other stuff open in memory with your workspace as you are testing/building. (I can see you have closed in this example and db). One way of testing if this is the cause is by exiting out of access and restarting

Just my two cents observation here....have you considered just returning one row recordset if all you are doing is adding a new one? why not just call...

"Select top 1 * from tbl_History"

or

"Select * from tbl_History where 1=2"

This will save memory and better over a network as you are not dragging anything up (network... split backend etc) and will be faster as your database grows in size.
May 5 '10 #2
teambau
3 New Member
Jim, thanks for the tips. I will look into this.
May 6 '10 #3

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

Similar topics

5
2226
by: hakim | last post by:
Hi, I need some information ? How I can run my project (Php) on CGI. Thanks.
12
8853
by: icui | last post by:
The following script generates two files copies. (I expect that a new file is created in my $wrk_dir) The same script executed without Apache works properly and generates single file copy. ...
1
1588
by: tmb | last post by:
Is there a Java Server that will run on the clients machine for doing web development without having up upload the web page to an actual server for testing? Microsoft once had one called...
2
4934
by: Dica | last post by:
i'm just learning java now, so this might be obvious, but not to me. my app needs to do two things: (1) connect to and fetch a list of tasks for a user from a web service (2) connect to mapquest...
10
11023
by: Frog | last post by:
Hi, i'm not a programmer so I have a very stupid question. I'm trying to make a practical script. I need to run an executable program in it but i can't get it to work. Maybe someone here can...
3
4911
by: leroybt.rm | last post by:
Can someone tell me how to run a script from a interactive shell I type the following: >>>python filename >>>python filename.py >>>run filename >>>run filename.py >>>/run filename >>>/run...
4
3200
by: Ed | last post by:
Hello, I took a course in asp about 2 years ago and I was practicing with IIS 5.0. Then I put it down for a while. Now trying to get back to it. I can't run asp files from subdirectories of...
13
5050
by: Bob Day | last post by:
Using vs2003, vb.net I start a thread, giving it a name before start. Code snippet: 'give each thread a unique name (for later identification) Trunk_Thread.Name = "Trunk_0_Thread" ' allow...
8
2998
by: David Thielen | last post by:
Hi; In our setup program how do I determine if I need to run "aspnet_regiis –i" and if so, is there an API I can calll rather than finding that program on the user's disk and calling it? --...
3
11266
by: traceable1 | last post by:
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks!
0
7132
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,...
1
6899
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
7390
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
5475
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,...
1
4919
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...
0
4602
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3094
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1427
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 ...
0
302
bsmnconsultancy
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...

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.