PC Review


Reply
Thread Tools Rate Thread

access 2007 vba report checkbox

 
 
attrib75
Guest
Posts: n/a
 
      28th Apr 2010
Hello,

I'm trying to make a checkbox checked on a report depending on the existance
of a file in a directory. Its in the report_current event. So far no luck.
Not sure I have the syntax right.

me.checkboxname = true

I took out the condition to see if the file existed, just to test if I could
even set the checkbox to checked. Doesn't work. Could it be

me!checkboxname = true

or

me.checkboxname = -1?



 
Reply With Quote
 
 
 
 
Jeff Boyce
Guest
Posts: n/a
 
      28th Apr 2010
What happens when you tried those?

Regards

Jeff Boyce
Microsoft Access MVP

--
Disclaimer: This author may have received products and services mentioned
in this post. Mention and/or description of a product or service herein
does not constitute endorsement thereof.

Any code or pseudocode included in this post is offered "as is", with no
guarantee as to suitability.

You can thank the FTC of the USA for making this disclaimer
possible/necessary.

"attrib75" <(E-Mail Removed)> wrote in message
news:FE07231A-C3FB-44DC-9E92-(E-Mail Removed)...
> Hello,
>
> I'm trying to make a checkbox checked on a report depending on the
> existance
> of a file in a directory. Its in the report_current event. So far no
> luck.
> Not sure I have the syntax right.
>
> me.checkboxname = true
>
> I took out the condition to see if the file existed, just to test if I
> could
> even set the checkbox to checked. Doesn't work. Could it be
>
> me!checkboxname = true
>
> or
>
> me.checkboxname = -1?
>
>
>



 
Reply With Quote
 
Beetle
Guest
Posts: n/a
 
      28th Apr 2010
Reports are static representations of data. You can't directly modify
data on a report, you have to change the data in the underlying
table or query.

Also, reports do not have a Current event. Did you mean to say that
you are working with a form?

--
_________

Sean Bailey


"attrib75" wrote:

> Hello,
>
> I'm trying to make a checkbox checked on a report depending on the existance
> of a file in a directory. Its in the report_current event. So far no luck.
> Not sure I have the syntax right.
>
> me.checkboxname = true
>
> I took out the condition to see if the file existed, just to test if I could
> even set the checkbox to checked. Doesn't work. Could it be
>
> me!checkboxname = true
>
> or
>
> me.checkboxname = -1?
>
>
>

 
Reply With Quote
 
attrib75
Guest
Posts: n/a
 
      28th Apr 2010
Thanks,

No I'm trying to do it in a report. I was getting the feeling you couldn't
modify anything in a report. Trouble is I don't know how in the report, to
check a file system for the existance of a .jpg. If its there, check the
box. I was trying to do:

if \\filepath\name.jpg = name.jpg then

me.checkbox.value = true

in vba on the current_record event but you cant modify reports that way I
guess. How do you get a current list of files in a folder into a table so
that the report can check it?

"Beetle" wrote:

> Reports are static representations of data. You can't directly modify
> data on a report, you have to change the data in the underlying
> table or query.
>
> Also, reports do not have a Current event. Did you mean to say that
> you are working with a form?
>
> --
> _________
>
> Sean Bailey
>
>
> "attrib75" wrote:
>
> > Hello,
> >
> > I'm trying to make a checkbox checked on a report depending on the existance
> > of a file in a directory. Its in the report_current event. So far no luck.
> > Not sure I have the syntax right.
> >
> > me.checkboxname = true
> >
> > I took out the condition to see if the file existed, just to test if I could
> > even set the checkbox to checked. Doesn't work. Could it be
> >
> > me!checkboxname = true
> >
> > or
> >
> > me.checkboxname = -1?
> >
> >
> >

 
Reply With Quote
 
attrib75
Guest
Posts: n/a
 
      29th Apr 2010
Nothing changes, and the report populates as usual.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Access 2007: How to center checkbox under label? Jimbo213 Microsoft Access Reports 2 13th May 2009 04:07 PM
Access 2007: How to center checkbox under label? Jimbo213 Microsoft Access Reports 0 12th May 2009 08:31 PM
Access 2007 center checkbox on report? Elizabeth Swoope Microsoft Access Reports 1 4th Dec 2007 08:46 PM
convert an ACCESS report to a WORDreport, the checkbox disappear =?Utf-8?B?ZG91Z28=?= Microsoft Access Getting Started 1 15th Feb 2006 02:23 PM
Re: Access Report won't show checkbox data in Word document Allen Browne Microsoft Access Reports 0 9th Dec 2005 05:13 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:00 PM.