Results 1 to 2 of 2

Thread: Recordset Question

  1. #1

    Thread Starter
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418

    Unhappy

    Does anyone know how i could go about adding information to the same field in two sepreate tables?
    I have a Account ID field in another table called Route Information. Somebody suggested using an innerjoin but isnt that used to extract information from two seperate tables
    rather then input?

    Set rs = db.OpenRecordset("Account Information")

    rs![Account Name] = frmAccountSetup.ctrlAccountName.Text
    rs![Account Address] = frmAccountSetup.ctrlAccountAddress.Text
    rs![Account ID] = frmAccountSetup.ctrlAccountID.Text
    rs![Phone Number] = frmAccountSetup.ctrlPhoneNumber.Text

    ' I tried using this, i thought i could refrence the field name with the table but it doesnt work. lol

    rs![Route Information].[Account ID] = frmAccountSetup.ctrlAccountID.Text


    Thanks All...... =C)





  2. #2
    Lively Member
    Join Date
    Jul 2000
    Location
    Stockholm, Sweden
    Posts
    83
    Shouldn't a second recordset solve the problem ?

    Code:
    Set rs = db.OpenRecordset("Account Information") 
    
    rs![Account Name] = frmAccountSetup.ctrlAccountName.Text 
    rs![Account Address] = frmAccountSetup.ctrlAccountAddress.Text 
    rs![Account ID] = frmAccountSetup.ctrlAccountID.Text 
    rs![Phone Number] = frmAccountSetup.ctrlPhoneNumber.Text 
    
    Set rsRoute = db.OpenRecordset("Route Information") 
    rsRoute![Account ID] = frmAccountSetup.ctrlAccountID.Text
    Yesterday, all my troubles seemed so far away...
    Help, I need somebody, Help...
    Now MCSD and still locking for intresting job in the south parts of Stockholm, Sweden.

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