Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default page through records in detailsview

I'm trying to build a report in excel which shows invoice details. The
invoicedata comes from a sql server db which I have linked in a separate
worksheet and now looks like a table in Excel. How can I have the invoice
detail sheet show the details from the linked table and have controls that
allow to select the details for different clients (by browsing next/previous
or by looking up a name)?

Can't seem to link an active record to the details view.

i'm pretty new to this stuff.. so pointers on where to search would already
be very helpful. I have a .NET C# background.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default page through records in detailsview

you're obviously linking the report to the table somehow?

its hard to say without seeing what you have, but I'd imagine that the data
table has one row per client, and that the client name, or maybe an index is
unique?

you can use the OFFSET function to put data into the report

suppose the data table starts at C5 (headings in C4) , cust #1 in C5,D5...,
cust #2 in C6,D6 ...

if in your report you have 1 a cell (A1)
you can use =OFFSET(dataSheet!C4,A1,0)
this reyrn the data in C4 offset by 1 row, ie C5 , which is cust #1
change the 1 in A1 to a 2
then the value you get back is that in C4 offset by two rows, ie C6, which
is cust #2

is this clear?












"Yannick Smits" wrote:

I'm trying to build a report in excel which shows invoice details. The
invoicedata comes from a sql server db which I have linked in a separate
worksheet and now looks like a table in Excel. How can I have the invoice
detail sheet show the details from the linked table and have controls that
allow to select the details for different clients (by browsing next/previous
or by looking up a name)?

Can't seem to link an active record to the details view.

i'm pretty new to this stuff.. so pointers on where to search would already
be very helpful. I have a .NET C# background.

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default page through records in detailsview

Exactly what I needed! thank you

"Patrick Molloy" wrote:

you're obviously linking the report to the table somehow?

its hard to say without seeing what you have, but I'd imagine that the data
table has one row per client, and that the client name, or maybe an index is
unique?

you can use the OFFSET function to put data into the report

suppose the data table starts at C5 (headings in C4) , cust #1 in C5,D5...,
cust #2 in C6,D6 ...

if in your report you have 1 a cell (A1)
you can use =OFFSET(dataSheet!C4,A1,0)
this reyrn the data in C4 offset by 1 row, ie C5 , which is cust #1
change the 1 in A1 to a 2
then the value you get back is that in C4 offset by two rows, ie C6, which
is cust #2

is this clear?












"Yannick Smits" wrote:

I'm trying to build a report in excel which shows invoice details. The
invoicedata comes from a sql server db which I have linked in a separate
worksheet and now looks like a table in Excel. How can I have the invoice
detail sheet show the details from the linked table and have controls that
allow to select the details for different clients (by browsing next/previous
or by looking up a name)?

Can't seem to link an active record to the details view.

i'm pretty new to this stuff.. so pointers on where to search would already
be very helpful. I have a .NET C# background.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Delete records when certain records have duplicate column data JVroom New Users to Excel 1 January 26th 09 06:23 PM
Paste records that overflow to new column on same page Melissa Excel Discussion (Misc queries) 8 September 19th 08 10:28 PM
Set some Excel records as a fixed footer on the end of a page johan Excel Worksheet Functions 1 March 16th 07 11:55 PM
draw 999 x 8 random records from file with 8614 records news.wanadoo.nl Excel Programming 1 March 1st 06 03:04 PM
Sorting records in Pivot page field Erik Creyghton[_3_] Excel Programming 0 September 11th 05 10:16 PM


All times are GMT +1. The time now is 03:33 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"