Solved

VB6/TDBGrid Problem---Answer wanted immediately!!

Posted on 1998-12-05
2
343 Views
Last Modified: 2013-12-25
I am using a TDBGrid Control bound to an ORADC Control.Now, there is a problem when I try to update anything but the first record in the grid and VB simply crashes!(Invalid page fault).In order to verify this I used the VBDataForm Wizard and sure enough the error trapped read "Insufficient base table information for updating or refreshing".I have no idea why this happened as this problem has surfaced only recently!I do know ADO has a problem using adUseClient cursors but if I do it in my code and use a adUseServer cursor it works fine but then the Set ADO.Recordset=res
where res is my created recordset doesnt work! How do I get around this problem??? Anyone???
0
Comment
Question by:rurajase
2 Comments
 
LVL 2

Accepted Solution

by:
majed100598 earned 50 total points
ID: 1498008
Dont worry , i face the same problem
The only way to solve this by adding new code which is blank
and set it to be the first item

for example
the code table is
create table code_tb (code1 number(2),
code2 number(3),
name varchar2(30));

insert into code_tb values (1,-1,'sex data');
insert into code_tb values (1,0,'');
insert into code_tb values (1,1,'male');
insert into code_tb values (1,2,'female');
create view code_view as select code2,name from code_tb where code2<>-1;

if you face any problem contact me

0
 

Author Comment

by:rurajase
ID: 1498009
I am sorry but are u intending to say that I should modify the structure of the table in Oracle from which I read data into my ORADC data control??Well if that is the case then I'm sorry it's beyond the scope of my project!
Thanx anyways!
Anyone else???
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

813 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now