Question

Asked:
Asked By:
Nov 21 2008   6:32 AM GMT
AnandaDebnath   240 pts.

DataEnvironment_VB6.0


Visual Basic, VB, Visual Basic 6, VB 6, DataEnvironment

Plsease send / provide codes to for DataEnvironment (vb 6.0). I wish to use the De for all purpose, eg. In Form, In Query, In Report every things


thanks
anand

Subscribe to Alerts! Get questions and answers delivered to your Inbox.


E-mail me updates on this question



   SUBSCRIBE

hidden modal window

Answer Wiki (Improve, edit or add to this answer)


 RATE THIS ANSWER
+1
Click to Vote:
  •   1
  •  0



Create a dataenvironment connection and give the connection property.Add command and
set the property to the table you want to use

dataenvironment1.rscommand1.open
to add record
dataenvironment1.rscommand1.addnew

to access fields
dataenvironment1.rscommand1.fields(0) = text1.text
dataenvironment1.rscommand1.fields(1) = text2.text

to update
dataenvironement1.rscommand1.update

to check end of file
while dataenvironment1.rscommand1.EOF = false

....
....
  • AddThis Social Bookmark Button

Browse more Questions and Answers on Development.

Looking for relevant Development Whitepapers? Visit the SearchWinDevelopment.com Research Library.


Discuss This Answer


You must be logged-in to discuss a question. Log-in/Register