Click here to Skip to main content
16,005,037 members
Home / Discussions / Database
   

Database

 
GeneralRe: Help with big stored procedure Pin
Not Active18-Feb-04 1:06
mentorNot Active18-Feb-04 1:06 
GeneralRe: Help with big stored procedure Pin
Verdant12318-Feb-04 1:58
Verdant12318-Feb-04 1:58 
Generalgetting columns data rowwise Pin
percyvimal17-Feb-04 16:59
percyvimal17-Feb-04 16:59 
GeneralRe: getting columns data rowwise Pin
Mazdak17-Feb-04 18:23
Mazdak17-Feb-04 18:23 
GeneralCreating SQL tables from XML schema Pin
blurp17-Feb-04 13:04
blurp17-Feb-04 13:04 
GeneralShowing Multiple tables in Datagrid Pin
Qamarwis17-Feb-04 9:56
Qamarwis17-Feb-04 9:56 
GeneralRe: uMultiple tables in Datagrid Pin
Mazdak17-Feb-04 10:01
Mazdak17-Feb-04 10:01 
QuestionWhat is ??? The Problem Pin
jinbabaj17-Feb-04 3:56
jinbabaj17-Feb-04 3:56 
Hi Folks !

i want to share my problem with u hope u will solve it....
i have a datacombo attached to ADO (Database Table).

1. I have coded the function for the combo on 'change' as follows to run the query on the ADO.

[code]
Private Sub cmbOdr_Change()
ADO_Ven.Recordset.Close
ADO_Ven.Recordset.Open "SELECT * FROM VENDOR WHERE VENID IN (SELECT VENID FROM PROD WHERE PRODID IN (SELECT PRODID FROM BYR_ODR_DTL WHERE ORDERNO ='" & cmbOdr.BoundText & _
"' AND [DATE] IS NULL))"
ADO_Ven.Recordset.Requery

CmbVen.Text = ""

End Sub
[/code]

i receive an error Msg...

Run-time error '91':
Object variable or With block variable not set

but when i code it in the click event of the combo "cmbOdr"
the code works fine......

2. Similar kind of Problem is with another piece of code ,
which i code on the button click event

[code]
Private Sub Command3_Click()
ADO_ByrOdrDtl.Recordset.Close
ADO_ByrOdrDtl.Recordset.Open "INSERT INTO BYR_ODR_DTL( [DATE] ) VALUES ( txtDate.Text )WHERE ORDERNO ='" & cmbOdr.BoundText & "'"

End Sub
[/code]

the abvoe mentioned Error Msg is Generated......

Plz tell me how to avoid this error...

Thanx in Advance.
AnswerRe: What is ??? The Problem Pin
Edbert P17-Feb-04 17:19
Edbert P17-Feb-04 17:19 
GeneralRetrieving a list of tables (ADO) Pin
pl0p16-Feb-04 17:28
pl0p16-Feb-04 17:28 
GeneralRe: Retrieving a list of tables (ADO) Pin
Mazdak16-Feb-04 17:47
Mazdak16-Feb-04 17:47 
GeneralRe: Retrieving a list of tables (ADO) Pin
-Dr_X-20-Feb-04 11:16
-Dr_X-20-Feb-04 11:16 
GeneralAccess Pin
Anonymous16-Feb-04 16:05
Anonymous16-Feb-04 16:05 
GeneralRe: Access Pin
-Dr_X-20-Feb-04 11:23
-Dr_X-20-Feb-04 11:23 
GeneralSelect MID?? instead of TOP Pin
krisp16-Feb-04 11:26
krisp16-Feb-04 11:26 
GeneralRe: Select MID?? instead of TOP Pin
John Kuhn16-Feb-04 11:46
John Kuhn16-Feb-04 11:46 
GeneralRe: Select MID?? instead of TOP Pin
krisp16-Feb-04 11:52
krisp16-Feb-04 11:52 
GeneralRe: Select MID?? instead of TOP Pin
John Kuhn16-Feb-04 15:13
John Kuhn16-Feb-04 15:13 
GeneralSQL Server 2000 Connection From ASP Pin
SamAmman15-Feb-04 22:32
SamAmman15-Feb-04 22:32 
GeneralRe: SQL Server 2000 Connection From ASP Pin
Marcie Jones16-Feb-04 2:59
Marcie Jones16-Feb-04 2:59 
GeneralRe: SQL Server 2000 Connection From ASP Pin
Mike Dimmick17-Feb-04 6:41
Mike Dimmick17-Feb-04 6:41 
GeneralBoy I have a goober of a problem. Pin
Anonymous15-Feb-04 21:23
Anonymous15-Feb-04 21:23 
GeneralProblem with simple SQL query :D Pin
gamerPotatoe15-Feb-04 21:10
gamerPotatoe15-Feb-04 21:10 
GeneralRe: Problem with simple SQL query :D Pin
Mazdak15-Feb-04 21:29
Mazdak15-Feb-04 21:29 
GeneralConcatenating variables in SQL query Pin
solostar***15-Feb-04 16:19
solostar***15-Feb-04 16:19 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.