PC Review


Reply
Thread Tools Rate Thread

Shaped table names

 
 
Bob L.
Guest
Posts: n/a
 
      13th Sep 2004
Hi everyone,

I am loading data into a DataSet using the MSDataShape provider, and I need
to control table that the child data gets loaded into. For example, I load a
schema that creates (inferrs) a ReportGroups table (the parent) and a
Reports table (the child). When I use the following shape command

SHAPE { SELECT * FROM ReportGroups} As ReportGroups
APPEND ({ SELECT * FROM Reports } AS Reports RELATE ReportGroupID TO
ReportGroupID) AS Reports

and call

oAdapter.Fill(oDataSet, "ReportGroups")

the parent data gets loaded into the ReportGroups table properly, but
instead of loading the child data into the Reports table, the DataSet
creates a third table called ReportGroupsReport (concats the parent and
child table names together). How can I tell the DataSet to load the child
data into the correct table? Is there an easier way of doing this?

Thanks,
Bob L.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Case (in)sensitivity of table names/field names peschrader Microsoft Access 1 11th Dec 2009 02:15 PM
Working with Jacked up table names & field names dch3 Microsoft Access Database Table Design 2 14th Mar 2008 03:34 PM
Used MSysObjects to get table names & field names need to filter report Incolor Microsoft Access Form Coding 0 19th May 2006 05:48 PM
Add Database Names, table names & related fields from table in combo box Snowy Microsoft Excel Programming 4 29th Apr 2006 02:08 PM
Determine table names and column names in Access database Brian O'Haire Microsoft C# .NET 2 7th Dec 2003 02:28 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 11:39 AM.