A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Access » Using Forms
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

a2007 images in continiuos forms



 
 
Thread Tools Display Modes
  #1  
Old October 29th, 2009, 08:24 AM posted to microsoft.public.access.forms
StuJol
external usenet poster
 
Posts: 122
Default a2007 images in continiuos forms

using access 2007, i have a continuious form. i trying to get an image to be
visible/invisible on every record dependant on a date value within the record.

i know i can use the image source to reference a file path but im unable to
get the code to repeat for every record. this is the simple code i have so far

Private Sub Form_Current()
If Me.Date = Date Then
Me.Image60.visible = True
MsgBox "true"
Else
Me.Image60.visible = False
MsgBox "false"
End If
End Sub
  #2  
Old October 29th, 2009, 09:34 AM posted to microsoft.public.access.forms
StuJol
external usenet poster
 
Posts: 122
Default a2007 images in continiuos forms

apoligies for the duplication. got error message on first attempt so thought
it wasnt submitted.

"StuJol" wrote:

using access 2007, i have a continuious form. i trying to get an image to be
visible/invisible on every record dependant on a date value within the record.

i know i can use the image source to reference a file path but im unable to
get the code to repeat for every record. this is the simple code i have so far

Private Sub Form_Current()
If Me.Date = Date Then
Me.Image60.visible = True
MsgBox "true"
Else
Me.Image60.visible = False
MsgBox "false"
End If
End Sub

  #3  
Old October 29th, 2009, 03:30 PM posted to microsoft.public.access.forms
Gina Whipp
external usenet poster
 
Posts: 3,500
Default a2007 images in continiuos forms

StuJol,

I hat to be the bearer of bad news but what you are trying to do will not
work on a continuous form. Look at your code it's the same control you are
tyring make Visible/Invisible. And unfortunately, I have no solution for
you as Conditional Formatting can't be applied to Image controls.

--
Gina Whipp

"I feel I have been denied critical, need to know, information!" - Tremors
II

http://www.regina-whipp.com/index_files/TipList.htm

"StuJol" wrote in message
...
using access 2007, i have a continuious form. i trying to get an image to
be
visible/invisible on every record dependant on a date value within the
record.

i know i can use the image source to reference a file path but im unable
to
get the code to repeat for every record. this is the simple code i have so
far

Private Sub Form_Current()
If Me.Date = Date Then
Me.Image60.visible = True
MsgBox "true"
Else
Me.Image60.visible = False
MsgBox "false"
End If
End Sub



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 08:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.