Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
help in showing results of database query
hi i connect to a oracle database and i i do the
following select select distinct(book) from book_table where trun(date)=trunc(sysdate-1) it returns a column of with 3 rows in it what i have is a form that has 3 text boxes on it i want to put the first row value on textbox 1 and the second row value in txt box 2 and so on can anyone advise how cheers andy |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
help in showing results of database query
"andy" wrote ...
hi i connect to a oracle database and i i do the following select select distinct(book) from book_table where trun(date)=trunc(sysdate-1) it returns a column of with 3 rows in it what i have is a form that has 3 text boxes on it i want to put the first row value on textbox 1 and the second row value in txt box 2 and so on If you have opened an ADO recordset named 'rs', then something like: Form1.TextBox1.Text = rs!Book rs.MoveNext Form1.TextBox2.Text = rs!Book rs.MoveNext Form1.TextBox3.Text = rs!Book Jamie. -- |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Import New Database Query (Union Query) in Spreadsheet | Excel Discussion (Misc queries) | |||
database query not showing foxpro database How I import data | New Users to Excel | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
Anyone Else Use Database Query to Query Another Sheet in the Same Excel Workbook? | Excel Discussion (Misc queries) | |||
How to use a Access Query that as a parameter into Excel database query | Excel Discussion (Misc queries) |