Click here to Skip to main content
15,899,474 members
Home / Discussions / Database
   

Database

 
AnswerRe: Strnge WHERE syntax Pin
Mel Padden15-Feb-11 9:44
Mel Padden15-Feb-11 9:44 
AnswerRe: Strnge WHERE syntax Pin
jschell16-Feb-11 9:18
jschell16-Feb-11 9:18 
QuestionADO and memory limit? "Description: Not enough storage is available to complete this operation." Pin
devvvy14-Feb-11 15:42
devvvy14-Feb-11 15:42 
AnswerRe: ADO and memory limit? "Description: Not enough storage is available to complete this operation." Pin
Jörgen Andersson14-Feb-11 19:42
professionalJörgen Andersson14-Feb-11 19:42 
Questiondatabase connectivity Pin
Mutugi from Nairobi14-Feb-11 0:32
Mutugi from Nairobi14-Feb-11 0:32 
AnswerRe: database connectivity Pin
Luc Pattyn14-Feb-11 1:21
sitebuilderLuc Pattyn14-Feb-11 1:21 
AnswerRe: database connectivity Pin
Wendelius14-Feb-11 9:02
mentorWendelius14-Feb-11 9:02 
QuestionRecordset results Pin
scorp_scorp13-Feb-11 23:33
scorp_scorp13-Feb-11 23:33 
Dear All,
Am running an sql query in Access db , 2007 , and it returns the expected reocrds.

Now i copied the same query into a dataset , but it is generating diff numnber of records.

Any body can guide me where should i look to solve this.

Am writing the query in case it helps OMG | :OMG:

SELECT tb_c.c_number, tb_c.c_description, tb_c.c_scope, tb_c.c_category, tb_c.c_type, tb_c.c_scope, tb_c.c_number, tb_e_to_c.total_dc, tb_e_to_c.e_id
FROM tb_c INNER JOIN tb_e_to_c ON tb_c.c_number = tb_e_to_c.c_number
WHERE (((tb_c.c_scope)="Base Scope") AND ((tb_e_to_c.e_id)=1));


And Here how i wrote in the data set (its runing and returning records, which means the syntes is true, but the numer of records are different):

sqls = "SELECT tb_c.c_number, tb_c.c_description, tb_c.c_scope, tb_c.c_category, tb_c.c_type, tb_c.[c_scope], tb_c.[c_number], tb_e_to_c.total_dc, tb_e_to_c.e_id FROM tb_c INNER JOIN tb_e_to_c ON tb_c.c_number = tb_e_to_c.c_number WHERE(((tb_c.[c_scope])= '" & scope & "' AND ((tb_e_to_c.e_id)= " & eid & ")))"

set rcs = db.openrecordset (sqls)
0 will always beats the 1.

AnswerRe: Recordset results Pin
Simon_Whale13-Feb-11 23:45
Simon_Whale13-Feb-11 23:45 
GeneralRe: Recordset results Pin
scorp_scorp14-Feb-11 0:07
scorp_scorp14-Feb-11 0:07 
AnswerRe: Recordset results Pin
Wendelius14-Feb-11 8:43
mentorWendelius14-Feb-11 8:43 
GeneralRe: Recordset results Pin
Corporal Agarn14-Feb-11 9:02
professionalCorporal Agarn14-Feb-11 9:02 
GeneralRe: Recordset results Pin
Wendelius14-Feb-11 9:05
mentorWendelius14-Feb-11 9:05 
GeneralRe: Recordset results Pin
Corporal Agarn14-Feb-11 9:12
professionalCorporal Agarn14-Feb-11 9:12 
JokeRe: Recordset results Pin
Wendelius14-Feb-11 9:26
mentorWendelius14-Feb-11 9:26 
GeneralRe: Recordset results (solved) Pin
scorp_scorp14-Feb-11 16:09
scorp_scorp14-Feb-11 16:09 
GeneralRe: Recordset results (solved) Pin
Wendelius16-Feb-11 8:30
mentorWendelius16-Feb-11 8:30 
QuestionSyntex Error, Missing Operator !!! Pin
scorp_scorp12-Feb-11 17:47
scorp_scorp12-Feb-11 17:47 
AnswerRe: Syntex Error, Missing Operator !!! Pin
Luc Pattyn12-Feb-11 18:08
sitebuilderLuc Pattyn12-Feb-11 18:08 
GeneralRe: Syntex Error, Missing Operator !!! DIDNT work [modified] Pin
scorp_scorp12-Feb-11 18:53
scorp_scorp12-Feb-11 18:53 
AnswerRe: Syntex Error, Missing Operator !!! Pin
Wendelius12-Feb-11 21:29
mentorWendelius12-Feb-11 21:29 
GeneralRe: Syntex Error, Missing Operator !!! [modified] Pin
scorp_scorp12-Feb-11 21:35
scorp_scorp12-Feb-11 21:35 
GeneralRe: Syntex Error, Missing Operator !!! Pin
Wendelius12-Feb-11 22:12
mentorWendelius12-Feb-11 22:12 
GeneralRe: Syntex Error, Missing Operator !!! Pin
scorp_scorp12-Feb-11 22:27
scorp_scorp12-Feb-11 22:27 
GeneralRe: Syntex Error, Missing Operator !!! Pin
Wendelius12-Feb-11 22:42
mentorWendelius12-Feb-11 22:42 

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.