Home » Ask & Discuss » Other Courses » Computer Applications « Back to Discussion



Computer Applications

New kid on the Block

Joined: 10 Oct 2008
Post: 5
10 Oct 2008 01:52:09 IST
0 People liked this
1
501 View Post
explain attaching code to objects in visual basic
None

explain attaching code to objects in visual basic


Share this article on:

Comments (1)


Forum Expert
Joined: 5 Nov 2008
Posts: 13
6 Nov 2008 15:59:23 IST
0 people liked this

Visual Basic uses an object called RecordSet to hold your table. To declare such an object and to open the table, do this:


Dim rsMyRS As RecordSet

Set rsMyRS = dbMyDB.OpenRecordSet("MyTable", dbOpenDynaset)

I declared a RecordSet object and used the Database object's OpenRecordSet method to open a table of type Dynaset. You can open a RecordSet in several modes. VB's online help file explains the different modes




Quick Reply


Reply

Some HTML allowed.
Keep your comments above the belt or risk having them deleted.
Signup for a avatar to have your pictures show up by your comment
If Members see a thread that violates the Posting Rules, bring it to the attention of the Moderator Team
Free Sign Up!

Preparing for IIT-JEE ?

Arihant Revision Package for IIT JEE - Books, Practice Tests + Rank Predictor


@ INR 1,995/-

For Quick Info

Name

Mobile No.

Find Posts by Topics

Physics.

Topics

Mathematics.

Chemistry.

Biology

Parents

Board

Fun Zone

Sponsored Ads