Results 1 to 2 of 2

Thread: Easy Middle Tier Question

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Nov 2000
    Location
    Sydney Australia
    Posts
    804

    Easy Middle Tier Question

    I have an address book app. It has 2 tables, 1 for New Contacts and one for New Phone Numbers.

    As a new contact is added, one or more numbers may be added associated with that contact. E.g Add Contact Joe Smith, Then Joe has a work and home number which are added to the phone number table.

    I have the app up and running but only in 2 tier format.

    If I want to create objects to handle access to the db server, what objects should I use in this circumstance?

    For example should I have a contact object and a phone number object?

  2. #2
    Evil Genius alex_read's Avatar
    Join Date
    May 2000
    Location
    Espoo, Finland
    Posts
    5,538
    Not really, you can store all of the data in 1 recordset.

    Take a look at the following in your MSDN help :
    INNER JOIN
    DISCONNECTED RECORDSETS

    I'll try & find a project which I'v used this with & paste some code.

    Please rate this post if it was useful for you!
    Please try to search before creating a new post,
    Please format code using [ code ][ /code ], and
    Post sample code, error details & problem details

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width