Page 2 of 2 FirstFirst 12
Results 16 to 17 of 17
  1. #16
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Quote Originally Posted by Middlemarch View Post
    Hi Ruegen,

    Fascinating sort of task this, and I have got there, I think !!

    The command 'CustomPicture: iif(Form_FrmMyTest![B Side Title Comment]=true,"",[Image244])'. was failing. First I thought because
    B Side Title Comment is also a custom field. But then I figured that is part of the underlying query for the Form and should be based on the Table.

    So I changed it and running up the query shows Custom Picture field has a filespec to a bmp when my Yes/No field is ticked, and is empty where it's false.

    Is that about right so far?

    In my Form I have an image control and it's control source is CustomPicture. And Viola! my graphic shows where and when it should

    But there's a But! I didn't add requery or anything else (yet) and that might be part of it... but it is too slow loading the image. It's pretty small (under 2k)
    but could I try and embed it in the database to see if it would it be faster. there's about 18000 rows or records in the Form.

    A zillion thanks for sticking with me over this!
    I thought Form_FrmMyTest![B Side Title Comment]



    was the checkbox on the form. Yes it will take time to calculate the CustomPicture field (expression because that is what it is) as it needs to look at [B Side Title Comment] for every record. If that's the case then every record is evaluating whether or not to show the image. 18000 rows is 18000 records.

    When a record evaluates quickly the quicker it can calculate the faster the form will load

    so if [B Side Title Comment] is a string rather than a true or false (or a 1/0 or integer) then it will take more time to load.

  2. #17
    Ruegen's Avatar
    Ruegen is offline VIP
    Windows 8 Access 2010 64bit
    Join Date
    Jul 2013
    Location
    Australia
    Posts
    1,496
    Also I'd still recommend having the image visibility property set to false rather than making the record change.

    i.e.
    if me.CheckBoxName= true then
    me.ImageControl.visible = false
    else
    me.ImageControl.visible = true
    end if

    that way you don't have to evaluate 18000 records and you are just 'hiding' the OLE (?) control

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

Similar Threads

  1. Replies: 4
    Last Post: 11-04-2014, 07:35 PM
  2. Replies: 3
    Last Post: 03-29-2012, 12:40 PM
  3. Data not visible in Form view
    By CASmith in forum Forms
    Replies: 8
    Last Post: 12-23-2011, 04:02 PM
  4. Replies: 2
    Last Post: 01-06-2011, 04:38 AM
  5. Query results visible in a form view in Access
    By pawelek022 in forum Forms
    Replies: 0
    Last Post: 11-30-2010, 01:25 PM

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