Search Result

Collapse
6 results in 0.0043 seconds.
Keywords
Members
Tags
access vba
  •  

  • Can I use a button on a form to save and go to new record at the same time on click?

    I wrote this piece of code:

    Code:
    Private Sub CommandAddNew_Click()
    If Me.NewRecord Then
    DoCmd.RunCommand (acCmdSaveRecord)
    Else
    DoCmd.RunCommand (acCmdRecordsGoToNew)
    End If
    End Sub
    What I am really trying to do is use a single button to save the record and go to new record. Meaning when the user click the button, the record is saved and there is a new form to enter a new...
    See more | Go to post

  • Why is my search form returning 1 record in my subform when there should be multiple?

    I have a search form with a sub data form. When i search for "john" for example I should get a bunch of records in my subform, however it is just showing the first one from the table.

    Here is the VBA.

    Code:
     Option Compare Database
    Option Explicit
    
    Private Sub btnClear_Click()
        Dim intIndex As Integer
        
        ' Clear all search items
        Me.txtID = ""
    ...
    See more | Go to post
    Last edited by nico5038; Oct 18 '10, 07:41 PM. Reason: Code tags edited

  • update and delete single access record set via excel vba

    I have this tool where employee information needs to be updated. I call in the MDB data to excel in one sheet. Now I use vlookup to see what is there and change it if needed.

    I have tried some tricks however some thing seems to be wrong.. please help.
    Code:
    Sub update()
    Dim cn As Object
    Dim rs As Object
    Dim a As String
    strFile = "D:\temp excel\EIM.mdb"
    strCon = "Provider=Microsoft.Jet.OLEDB.4.0;Data
    ...
    See more | Go to post

  • Outlook Message Does Not Always Display From Access VBA Application

    I have an access 2007 vba application that creates and displays an email before sending. Display is done using .DISPLAY Most of the time it works as expected, the outlook message displays on the screen, the user edits and sends it, and control returns to the Access form. But, sometimes the outlook message does not pop up to the user. The user has to look around in their task bar at the bottom of the screen to find the new message. They find...
    See more | Go to post

  • zombiezoom
    started a topic Assigning autonumber

    Assigning autonumber

    I am creating a runner table. I need help in assigning a bib number. I could have used runner id as a bib number However, a runner id is assigned to all runners in my database. Hence, it is not unique to a particular race. What I would like to do is input bib number unique to a particular race. I may have 10,000 runners in my database but only 200 runner running a particular race on certain date. Bib Number is a field that is part of race & runner...
    See more | Go to post

  • tusharthakar
    started a topic vba help required

    vba help required

    i want to know how to add live time that updates every second while your on the form

    second thing i want to ask is that i have a listbox which has valuelist as data type and i am using sql query to find the data and storing the data in record set and then using a loop i am going through each and every data and adding it to the list box

    the listbox has 4 column

    1st is id, second is name, third is qty,...
    See more | Go to post
Working...