Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Iain is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2012
    Location
    Aberdeenshire, Scotland
    Posts
    42
    Appologies but I tried to post an error dialogue box with my last post "User-defined Object not defined". I now see that this didn't post correctly.

    I wll try these suggestions but I have now discovered that form's VBA code will not compile.

    The first line of Function InsertFrames() is highlighted by the Debug Compile tool.

    I have the following Object References selected

    Visual basic For Applications
    Microsoft Access 12.0 Object Library
    OLE Automation
    Microsoft Office 12.0 Access database Object library
    Microsoft ActiveX Data Objects 2.8 Library

    Do I need other object libraries selected?

  2. #17
    Iain is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2012
    Location
    Aberdeenshire, Scotland
    Posts
    42
    Solved!
    By using the modified code in post #13, but leaving the first line as in my original code the incrementation calculation and concatenation, all work as intended.
    The code would not compile because of a typo in the variable [Rating] which a copied from #13 but didn't spot. This cleared both the 'User-defined ... error and the failure of the SQL statement.
    Many thanks to everone who helped me out on this.
    Iain

  3. #18
    June7's Avatar
    June7 is offline VIP
    Windows 7 64bit Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    53,771
    By 'first line' you mean the Set frm?

    Your code was working before, right? What was changed?

    EDIT: Now I see you solved.

    About your code, not sure about need for the frm and cmd objects. Is this code behind the form?
    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.

  4. #19
    Iain is offline Advanced Beginner
    Windows XP Access 2007
    Join Date
    Jun 2012
    Location
    Aberdeenshire, Scotland
    Posts
    42
    Quote Originally Posted by June7 View Post
    By 'first line' you mean the Set frm?

    Your code was working before, right? What was changed?

    EDIT: Now I see you solved.

    About your code, not sure about need for the frm and cmd objects. Is this code behind the form?
    Code I have posted is for the Form with the text boxes. It is a temporary form (not sure if it is strictly speaking a subform or not) opened from the form referrred to by Set frm.

    This other form displays previously recorded Camera Image details in a Dynaset so that the user can refer to previous entries and thus check if they are using the correct camera/library references etc.

    This Dynaset is re-queried by the code on the data entry form so that it immediately refreshes with the newly entered data.

    Trust this answers your question.

Page 2 of 2 FirstFirst 12
Please reply to this thread with any new information or opinions.

Similar Threads

  1. Do not add leading zeros
    By phifer2088 in forum Access
    Replies: 5
    Last Post: 03-02-2015, 10:05 AM
  2. Issues with leading zeros in a form field
    By apetriella in forum Forms
    Replies: 2
    Last Post: 02-10-2015, 11:27 AM
  3. Variable entry with leading zeros
    By Nanaia in forum Access
    Replies: 1
    Last Post: 07-16-2014, 08:40 AM
  4. Importing data with leading zeros
    By buckychudd in forum Import/Export Data
    Replies: 7
    Last Post: 11-04-2011, 12:26 PM
  5. leading 'Zeros' in data
    By wasim_sono in forum Forms
    Replies: 3
    Last Post: 04-06-2009, 11:57 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