Page 3 of 3 FirstFirst 123
Results 31 to 35 of 35
  1. #31
    ssanfu is offline Master of Nothing
    Windows 7 32bit Access 2010 32bit
    Join Date
    Sep 2010
    Location
    Anchorage, Alaska, USA
    Posts
    9,664
    @Micron,


    I have Access 2010.
    If I try to add a reference to the "Microsoft DAO 3.6" library, I get an error: "Name conflicts with existing module, project of object library".
    Sometimes I get compile errors (sometimes on built in functions, as in Mid or Left); I then have to add reference(s) to: "Microsoft Office 14.0 Object Library" and/or "Microsoft Office 14.0 Access database engine Object Library". (one or both)


    IIRC, "Microsoft DAO 3.6" has been superseded/replaced by "Microsoft Office 14.0 Object Library" and/or "Microsoft Office 14.0 Access database engine Object Library"...... At least for A2010 and later.


    EDIT:
    Whoops!!
    Tried compiling Micron's code with the reference "Microsoft Office 14.0 Object Library".... choked on the line "Dim db As DAO.Database".
    The error is "Compile Error: User-defined type not defined"


    ridders52 is correct. I set a reference for "Microsoft Office 14.0 Access database engine Object Library" and the code compiled OK.

  2. #32
    June7's Avatar
    June7 is offline VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,962
    I have used transaction but not with DAO workspace. Example:

    Dim cn As ADODB.Connection
    Set cn = CurrentProject.Connection

    ...

    cn.BeginTrans

    ...

    cn.CommitTrans

    ...

    cn.RollbackTrans
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #33
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Access 2010 32bit
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,991
    Allen Browne has an article about this very reference in the different versions of Access
    http://allenbrowne.com/ser-38.html
    I use the Access database engine reference in all my databases for 2010 onwards

    P.S. Hope Santa can also fix his own laptop

  4. #34
    Micron is offline Virtually Inert Person
    Windows 7 32bit Access 2007
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,818
    Well, I'm back at a keyboard after shelling out $$$
    Will be several days before I get any Office software up and running - I need to pull k's of files off the old drive.
    I guess I'll just have to hang on for the OP to try your suggestions.
    Y'all have to note that I am/was using 2007 so I plead the 5th (maybe I'll just drink it instead and try to forget about the expense).

  5. #35
    jetanotherone is offline Novice
    Windows 10 Access 2016
    Join Date
    Dec 2017
    Location
    Australia
    Posts
    9
    Hi everyone,
    I hope you all had a great Christmas and wish you a fantastic New Year and thank you to all for your help and information. I have learnt a lot in the last week and still have a lot more to learn but will close this thread with a (SOLVED)......
    This is how I solved it....
    Click image for larger version. 

Name:	Capture.JPG 
Views:	11 
Size:	125.2 KB 
ID:	31820
    Here is the link to the updated version.... https://schoolsnsw-my.sharepoint.com...3a54%3a20.000Z
    Thank you again for your help!!

Page 3 of 3 FirstFirst 123
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 8
    Last Post: 08-21-2017, 11:13 AM
  2. Replies: 2
    Last Post: 03-05-2015, 01:45 PM
  3. OnClick increase number in field on form
    By DCV0204 in forum Forms
    Replies: 1
    Last Post: 07-25-2014, 11:02 AM
  4. Replies: 6
    Last Post: 01-28-2014, 11:44 AM
  5. Increase number by 1
    By elstiv in forum Queries
    Replies: 2
    Last Post: 05-14-2011, 12:25 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
  •  
Other Forums: Microsoft Office Forums