Results 1 to 3 of 3

Thread: Powerpoint with VBA

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Long Island, NY.
    Posts
    353

    Question Powerpoint with VBA

    I created a screen at the end of my powerpoint show that has 3 text boxes and a submit button. I want users to enter their data hit submit and the data be sent to a table inside of an access database. How do I write the code for this?

  2. #2
    Frenzied Member
    Join Date
    Aug 2005
    Posts
    1,042

    Re: Powerpoint with VBA

    vonoventwin:

    http://www.rdpslides.com/pptfaq/FAQ00004.htm

    Also, check out the downloads at that site.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Aug 2005
    Location
    Long Island, NY.
    Posts
    353

    Re: Powerpoint with VBA

    Tried this but nothing happens:

    VB Code:
    1. Private Sub CommandButton1_Click()
    2. Dim DB As database
    3. Dim Records As recordset
    4.  
    5. Set DB = OpenDatabase("C:\Documents and Settings\brad.vonoven\Desktop\training.mdb")
    6. Set Records = DB.OpenRecordset("training")
    7.  
    8. Do Until Records.EOF
    9.     'Check Record Field
    10.     If Records("SSN") = "003-46-8773" Then
    11.          'EDIT IT
    12.          Records.edit
    13.              Records("LOAC1") = Format(Now, "mm/dd/yyyy")
    14.          Records.Update
    15.         Exit Do
    16.  
    17.    End If
    18.    'Critical or it becomes an infinate loop
    19.    Records.movenext
    20. Loop
    21.  
    22. Records.Close
    23. DB.Close
    24. End Sub

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