Results 1 to 6 of 6

Thread: DataBase

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Northampton, MA
    Posts
    10

    Post

    here is my question:
    http://www.vb-world.net/ubb/Forum1/HTML/005847.html

    Thanks for your help
    SLimak

    ------------------
    Marek Karbarz
    My WebPage
    [email protected]

  2. #2
    Lively Member
    Join Date
    Jan 1999
    Posts
    82

    Post

    Hi,

    Do you mean you want to save an empty record into your database

    - OR -

    Users will enter data, then you save the information that the users entered?

    Preeti

  3. #3

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Northampton, MA
    Posts
    10

    Post

    The second option

    ------------------
    Marek Karbarz
    My WebPage
    [email protected]

  4. #4
    Lively Member
    Join Date
    Jan 1999
    Posts
    82

    Post

    Hi,

    All you have to do is:

    Dim SystemDb As Database
    Dim SystemRs As dao.Recordset
    Dim SQLStmt1 As String

    Set SystemDb = Workspaces(0).OpenDatabase(App.Path & "\databasename")

    SQLStmt1 = "Select * From tablename"

    Set SystemRs = SystemDb.OpenRecordset(SQLStmt1, dbOpenDynaset)
    With SystemRs
    .AddNew
    SystemRs![Field] = textbox1
    SystemRs![Field] = textbox2
    SystemRs![Field] = textbox3
    SystemRs![Field] = textbox3
    .Update
    End With

    Hope this helps,

    Preeti

  5. #5

    Thread Starter
    New Member
    Join Date
    Jun 1999
    Location
    Northampton, MA
    Posts
    10

    Post

    Thanks !!!!!!!!

    ------------------
    Marek Karbarz
    My WebPage
    [email protected]

  6. #6
    Addicted Member
    Join Date
    Apr 1999
    Location
    Freeport
    Posts
    204

    Post

    I may be way off but what the question mean to me is that you want your bound text to be empty when the form loads.
    Private Sub Form_Load()
    text1 = ""

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