473,396 Members | 1,945 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,396 software developers and data experts.

Give me expected query name after executed

Expand|Select|Wrap|Line Numbers
  1. access.Open("Provider = Microsoft.Jet.OLEDB.4.0;" &
  2.                  "Data Source = '" & Application.StartupPath & "\test.mdb'"
  3.                  )
  4.         value = TextBox2.Text
  5.         query.CommandText = "insert"
  6.         query.CommandType = ADODB.CommandTypeEnum.adCmdStoredProc
  7.         query.Parameters.Append(query.CreateParameter("RID", ADODB.DataTypeEnum.adInteger, ADODB.ParameterDirectionEnum.adParamInput, value))
  8.         query.ActiveConnection = access
  9.         query.Prepared = True
  10.         record.Open(query,, ADODB.CursorTypeEnum.adOpenDynamic, ADODB.LockTypeEnum.adLockOptimistic)
I have no idea where my code wrong @@
Sep 17 '15 #1
0 990

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

Similar topics

1
by: sofakingfree | last post by:
I could have sworn that Access 95/97 printed the query name as the header when you print out queries. It doesn't do that with version 2003. Is there some option I'm missing? Any help would be...
4
by: Zachary Hilbun | last post by:
I need to write an ASP that requires a user to give a User Name and Password to run it. Whenever I've used this on the Web it displays a standard dialog and then offers to save the User Name and...
19
by: bubzilla | last post by:
Hi, i´ve got about 10 headerfiles with implemented classes. Now when i try to compile them i get the following message: In file included from Proxy/ServerCnx.hh:36, from...
2
by: bubzilla | last post by:
Hi, i´ve got about 10 headerfiles with implemented classes. Now when i try to compile them i get the following message: In file included from Proxy/ServerCnx.hh:36, from Proxy/Payload.hh:30,...
1
by: katieking | last post by:
I would like a field in a query to contain the name of the query that is producing the data, in order to maintain transparency of data flows when the data is copied into Excel. Is there any way of...
5
by: gyre | last post by:
Hi! I've got a little problem I've been dealing with for several days :(( Code is written in Qt. I'll try to explain it: I created an abstract class "VcaNode" with 4 virtual methods and 3 other...
10
by: famat | last post by:
Hi all, I have C++ source code that compiles on windows-MS VS2005 without any problem. I am trying to compile it in Linux gcc version 4.1.2 (Ubuntu 4.1.2-0ubuntu4) and I ran into the following...
12
by: Fab | last post by:
Hi, I try to compile a 2 years old project (successfully compiled with g++ 3.3, if I correctly remember ). But get problems now with g++ -gcc 4.2.3 : #include <list> #include <hash_map>
7
by: tabla | last post by:
what happens when a sql query get executed containing joins in it.explain in details
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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...
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,...

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.