Results 1 to 3 of 3

Thread: Data Control problem - probably really simple

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Mar 2000
    Posts
    82

    Post

    i'm not sure about the data control, but when using the ado control, when a change is made in a bound text box, the changes should be automatically made and saved in the database or this may work...not sure tho!

    data1.recordset!fieldname = text1.text

    good luck

  2. #2
    Guest

    Post

    What you can do is. You make a command button on you form and set the caption "Edit" and make a another one with the caption "Update". When the user would like to change the value of you field. he hez to select the edit button and when he want to save the changed value he hez to select the update button. Before you can update the field the data1 control hez to be in the edit mode. or you can not use the update command.

    Code:
    'set your data control in edit mode
    Private Sub cmbEdit_Click()
      data1.Recordset.Edit
    End Sub
    
    'update the record
    Private Sub cmbUpdate_Click()
      data1.Recordset.Update
    End Sub
    
    'Make a new record. you dont have te be in edit mode
    'to use this command.
    Private Sub cmbNew_Click()
      data1.Recordset.AddNew
    End Sub
    Hope this will work..

    -Kayoca Mortation

  3. #3
    New Member
    Join Date
    Mar 2000
    Location
    Leicester, england
    Posts
    6

    car hir database

    hi i'm new to this
    i need some help, i'm trying to make a computer program for a car hire firm, and i don't know where to start
    i have designed it like a windowz program with the "File" "Edit" "Help" thingz
    but i don't know how to set out the rest of it cuz i need to have check lists nd stuff like that

    if any1 can help please email me on : [email protected]

    thanx alot people

    [Edited by Baz673 on 03-19-2000 at 10:47 AM]

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