Click here to Skip to main content
16,006,475 members
Home / Discussions / Database
   

Database

 
GeneralRe: Distinct in Quey Pin
Blue_Boy16-Jul-07 5:26
Blue_Boy16-Jul-07 5:26 
QuestionUpdating Bulk Record in oracle 10 g, Pin
nabeelkhan16-Jul-07 1:34
nabeelkhan16-Jul-07 1:34 
QuestionRe: Updating Bulk Record in oracle 10 g, Pin
andyharman16-Jul-07 5:17
professionalandyharman16-Jul-07 5:17 
QuestionDateTime Problem Pin
Mohammed Elkholy16-Jul-07 1:15
Mohammed Elkholy16-Jul-07 1:15 
AnswerRe: DateTime Problem Pin
Blue_Boy16-Jul-07 2:35
Blue_Boy16-Jul-07 2:35 
GeneralRe: DateTime Problem Pin
sidbaruah17-Jul-07 19:03
sidbaruah17-Jul-07 19:03 
AnswerRe: DateTime Problem Pin
Kschuler16-Jul-07 9:23
Kschuler16-Jul-07 9:23 
QuestionHow to fetch data and display in Excel using Macro(VBA) Pin
Tech_spidy16-Jul-07 0:00
Tech_spidy16-Jul-07 0:00 
Hi all,

I can able to fetch a single data from Sql and display it in the Excel sheet using Macro, this is the code.
I am getting in the Text Box:
sno = TextBox1.Text
When i am clicking the Ok button:
Query = "Select sname,scity from smaster where snum='" & sno & "'"
Set QueryRs = oConn.Execute(Query)
Sheet1.Cells(1, 1) = QueryRs("sname")
Sheet.Cells(1, 2) = QueryRs("scity")
Result:
Name, city displayed in the Excel sheet1

Now my problem is how to fetch multiple data and display (like how to use loop in it)

waiting for timely help

Tech_spidy

AnswerRe: How to fetch data and display in Excel using Macro(VBA) Pin
TomGarth16-Jul-07 4:11
TomGarth16-Jul-07 4:11 
Questionhow to write query Pin
harithadotnet15-Jul-07 23:08
harithadotnet15-Jul-07 23:08 
AnswerRe: how to write query Pin
Colin Angus Mackay15-Jul-07 23:23
Colin Angus Mackay15-Jul-07 23:23 
AnswerRe: how to write query Pin
PrakashBhaskar15-Jul-07 23:28
PrakashBhaskar15-Jul-07 23:28 
GeneralRe: how to write query Pin
Colin Angus Mackay15-Jul-07 23:33
Colin Angus Mackay15-Jul-07 23:33 
GeneralRe: how to write query Pin
PrakashBhaskar15-Jul-07 23:39
PrakashBhaskar15-Jul-07 23:39 
AnswerRe: how to write query Pin
Dipti D Jadhav16-Jul-07 0:15
Dipti D Jadhav16-Jul-07 0:15 
GeneralRe: how to write query Pin
Colin Angus Mackay16-Jul-07 0:47
Colin Angus Mackay16-Jul-07 0:47 
AnswerRe: how to write query Pin
Dipti D Jadhav16-Jul-07 0:16
Dipti D Jadhav16-Jul-07 0:16 
GeneralRe: how to write query Pin
Sathesh Sakthivel16-Jul-07 1:08
Sathesh Sakthivel16-Jul-07 1:08 
AnswerRe: how to write query Pin
Dipti D Jadhav16-Jul-07 19:03
Dipti D Jadhav16-Jul-07 19:03 
Questiondisplaying a data in textbox Pin
Rharzkie15-Jul-07 22:57
Rharzkie15-Jul-07 22:57 
AnswerRe: displaying a data in textbox Pin
Colin Angus Mackay15-Jul-07 23:28
Colin Angus Mackay15-Jul-07 23:28 
GeneralRe: displaying a data in textbox Pin
Rharzkie15-Jul-07 23:59
Rharzkie15-Jul-07 23:59 
GeneralRe: displaying a data in textbox Pin
Colin Angus Mackay16-Jul-07 0:53
Colin Angus Mackay16-Jul-07 0:53 
QuestionDate format in cell Pin
Sam Heller15-Jul-07 22:19
Sam Heller15-Jul-07 22:19 
AnswerRe: Date format in cell Pin
Colin Angus Mackay15-Jul-07 23:35
Colin Angus Mackay15-Jul-07 23:35 

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.