borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Database)Next Topic (Can I receive error messages back from SQL to my VP App?) New Topic New Poll Post Reply
AndreaVB Forum : Database : Add,Edit.Delete record in ralated tebles with VB6 and access database
Poster Message
mortezamokh
Level: Trainee

Registered: 14-04-2005
Posts: 1

icon Add,Edit.Delete record in ralated tebles with VB6 and access database

hi
I want to use a datagrid for add,edit and delete record from access relationed tables
i create 3 table
1:
( product ) with fields :
                      PId    PK
                      PDesc     text
2:
( model )  with fields :
                      MId    PK
                      MDesc     text
3:
( ProductModel ) with fields :
                      PMId    PK
                      PMPId     FK
                      PMMId    FK
now i want to do add, delete , edit in ProductModel table.how?
please help me
thanks

14-04-2005 at 11:44 AM
View Profile Send Email to User Show All Posts | Quote Reply
Goran
Level: Moderator

Registered: 16-05-2002
Posts: 1681
icon Re: Add,Edit.Delete record in ralated tebles with VB6 and access database

Try using INNER JOIN clause to join tables which will bring you with updatable recordset. Altough you could try to populate 3 recordsets, two them should populate comboboxes or some other similar control, so this way you will only need to deal with one recordset

____________________________
If you find the answer helpful, please mark this topic as solved.

14-04-2005 at 03:29 PM
View Profile Send Email to User Show All Posts | Quote Reply
AndreaVB Forum : Database : Add,Edit.Delete record in ralated tebles with VB6 and access database
Previous Topic (Database)Next Topic (Can I receive error messages back from SQL to my VP App?) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder