Consulting

Results 1 to 9 of 9

Thread: how to facilitate multiple users.

  1. #1
    VBAX Regular
    Joined
    Dec 2009
    Posts
    28
    Location

    how to facilitate multiple users.

    Hi I have developed a speedsheet that uses a form for data entry and has another worksheet in same workbook used to import data from first sheet. (as a master log) and it works really well for just one user at a time. Problem is now I need to have up to 10 people able to access it at same time.

    I'm thinking that i should give each person a copy of workbook and let each enter their data in their own sheet and then they could click command buton to send(and append ) that data to a Central(common) summary sheet located on the network.

    How to do this ? given network location to be say K:\engshare\BreakinLog

    Please assist.

  2. #2
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Use a database, yes even Access, and update that from a distributed addin.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  3. #3
    VBAX Regular
    Joined
    Dec 2009
    Posts
    28
    Location
    Great I have have already created an Access db with all the fields from my form in excel. As was thinking that access db may be better way to go with multiple users. However I'm not sure what you mean by ADDIN
    Do Use excel form to add to access?
    or Create Access form and split db somehow.
    In either case not sure how to set up path to db to save to.

    PS: Have never used access before.

  4. #4
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    Not exactly. I mean a special type of workbook, essentially a workbook that is just code, and is not visible. The addin has all of the user input forms, captures the data, updates the database and so on.

    It is late here now, but tomorrow we can expand this further if you wish. How do you envisage the users creating the data, in a spreadsheet, or via a classic form?
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  5. #5
    Distinguished Lord of VBAX VBAX Grand Master Bob Phillips's Avatar
    Joined
    Apr 2005
    Posts
    25,453
    Location
    BTW, don't worry about Access, you don't have to go anyhwre near it, you access (little a') it via ADO, which is something we can cover tomorrow.
    ____________________________________________
    Nihil simul inventum est et perfectum

    Abusus non tollit usum

    Last night I dreamed of a small consolation enjoyed only by the blind: Nobody knows the trouble I've not seen!
    James Thurber

  6. #6
    VBAX Regular
    Joined
    Dec 2009
    Posts
    28
    Location
    Ok sounds cool look forward to learning that. I want the users to use the form only for data entry. Just to maintain integrity of the data.

    Thanks XLD.

  7. #7
    VBAX Regular
    Joined
    Dec 2009
    Posts
    28
    Location
    Wow Ok I found out how to do it. No need to show me anymore thanks anyway XLD

  8. #8
    Moderator VBAX Wizard Aussiebear's Avatar
    Joined
    Dec 2005
    Location
    Queensland
    Posts
    5,059
    Location
    Others may be still interested in a solution Peter. Would you care to post yours?
    Remember To Do the Following....
    Use [Code].... [/Code] tags when posting code to the thread.
    Mark your thread as Solved if satisfied by using the Thread Tools options.
    If posting the same issue to another forum please show the link

  9. #9
    VBAX Regular
    Joined
    Dec 2009
    Posts
    28
    Location
    Sure I will give you the code I found here it is

    Found it on Ron De Bruin's website all credit to him!

    Sub ADOFromExcelToAccess()
    ' exports data from the active worksheet to a table in an Access database
    ' this procedure must be edited before use
    Dim cn As ADODB.Connection, rs As ADODB.Recordset, r As Long
    ' connect to the Access database
    Set cn = New ADODB.Connection
    cn.Open "Provider=Microsoft.Jet.OLEDB.4.0; " & _
    "Data Source=C:\FolderName\DataBaseName.mdb;"
    ' open a recordset
    Set rs = New ADODB.Recordset
    rs.Open "TableName", cn, adOpenKeyset, adLockOptimistic, adCmdTable
    ' all records in a table
    r = 3 ' the start row in the worksheet
    Do While Len(Range("A" & r).Formula) > 0
    ' repeat until first empty cell in column A
    With rs
    .AddNew ' create a new record
    ' add values to each field in the record
    .Fields("FieldName1") = Range("A" & r).Value
    .Fields("FieldName2") = Range("B" & r).Value
    .Fields("FieldNameN") = Range("C" & r).Value
    ' add more fields if necessary...
    .Update ' stores the new record
    End With
    r = r + 1 ' next row
    Loop
    rs.Close
    Set rs = Nothing
    cn.Close
    Set cn = Nothing
    End Sub

    a few minor changes and bingo works like a charm.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •