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

Insertion Prob In Access database

Dear all,

I m developping a project using VB 6.0 and Access-2007 as my databse.
I am collecting data in FlexGrid Control and using while loop I am inserting it in database. I am using ADO technique to insert record. I m using Following Code

rs = connection object;
i = 1;
while i < msflexgrid1.rows-1
msf1.col = 0;
temp1 = msf1.text;
msf1.col = 1
temp2 = msf1.text
rs.open("insert into inword values ' " & temp1 & " '," & temp2 );
wend

Sometimes it inserts data in database properly and sometimes it doesn't, When it doesnt insert data in database it goes into while loop but doesnt insert data.

Can any one please help me in this case
Jul 29 '08 #1
2 984
debasisdas
8,127 Expert 4TB
i dont understand why are you using a INSERT INTO sql statment to open a recordset.
Jul 29 '08 #2
i dont understand why are you using a INSERT INTO sql statment to open a recordset.
Hi thx for ur reply. Welll I am not using insert statement to open, That code I am using it to insert Flexgrid rows into database. I m parsing flexgrid row by row and inserting it in database using ado technq.

rs.open("SQL statmt") this statement will be used to execute any sql statement in ADO.
Jul 29 '08 #3

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

Similar topics

3
by: Raju V.K | last post by:
I am developing a PHP-mysql database. It is noted that when the browser window is refreshed the data is inserted again in the database. unfortunately there is no unique keys that I can use to...
1
by: Techy | last post by:
I have hancoded the asp page for inserting the values into an Ms Access > Database and it work fine > > The problem I am facing is that once I insert any value with Decimals like " > 11.95" or...
6
by: josephrthomas | last post by:
hi..i am trying to make a login page and i am using access table.. when the user enters his userid and password i want to check the password from the table.. if any user with the userID that is...
2
by: Nhat Yen | last post by:
Hi everyone, I tried to upload my database to my web host. Nevertheless as they do not give me enough permission to perform some DTS thus I have to generate script to do it myself. The problem...
3
by: Sunny | last post by:
Hi All, I am working on a Data Project, that involves records (rows) to be inserted from a Table in one database to an exactly similar table in another database. The table names and all field names...
2
by: jophrthomas | last post by:
hi...i am getting a error here...saying : **quote** The ConnectionString property has not been initialized. Description: An unhandled exception occurred during the execution of the current web...
0
by: polocar | last post by:
Hi, I have noticed a strange behaviour of CurrencyManager objects in C# (I use Visual Studio 2005 Professional Edition). Suppose that you have a SQL Server database with 2 tables called "Cities"...
5
by: shrimala | last post by:
Everyday when data is fed in Access, it is fine in the database; but when checked in the morning, sometimes it is corrupt. What may be the prob and how to rectify it?
2
by: mnacw | last post by:
Can anybody help me to resolve this prob. i have installed Visual Studio 2005 Professional edition. I am working in VB.Net. When I tried to connect to database it is connected but when i make some...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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
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
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...

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.