If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > Delphi, C etc > lookup data and change field

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 08-03-04, 16:16
vpdb vpdb is offline
Registered User
 
Join Date: Jun 2004
Posts: 9
Exclamation lookup data and change field

hi...i need to lookup data in an access database by a unique field, display the data, then change a certain field...does anyone have an idea on how to start this project?...i need to open a database, display the row, and change one field...im using access 97...is this a correct way to open?...
-------------------------------------------------

Private Sub Form_Load()

'Create and set the Recordset object
Set objRec = New ADODB.Recordset
Set objRec.Source = objComm
objRec.LockType = adLockOptimistic

'set cursor type
objRec.CursorType = adOpenDynamic

Set objConn = New ADODB.Connection
objConn.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;" & "Data Source=C:\test\test.mdb"
Set objRec = objConn.OpenRecordSet("Orders")

End Sub

-------------------------------------------------------------

thanks for your time...

Last edited by vpdb; 08-03-04 at 16:20.
Reply With Quote
  #2 (permalink)  
Old 08-10-04, 09:43
Daniel_Johns Daniel_Johns is offline
Registered User
 
Join Date: Jul 2004
Posts: 69
can u make it more precise? i mean how the data to be displayed, on what control or something then what specific fields..just give example...tired of thinking any example right now...
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On