Re: Read-only user & subforms

From: Allen Browne (AllenBrowne_at_SeeSig.Invalid)
Date: 01/19/05


Date: Wed, 19 Jan 2005 21:25:47 +0800

Not really.

In the case of the report, you displayed that message on the main report.
You could do something like that on your main form, e.g.:
    =IIf([Sub1].[RecordsetClone].[RecordCount]=0, "No records", Null)

Not ideal though: it flashes as the main form changes records and the
subform clears and loads its records, and it is not in the desired place.

You could also put a label behind the subform control (Format | Send to
Back, in Form Design view), and then toggle the Visible property of the
subform control. That would put the message in the right place, but I
suspect the flashing would be annoying.

-- 
Allen Browne - Microsoft MVP.  Perth, Western Australia.
Tips for Access users - http://allenbrowne.com/tips.html
Reply to group, rather than allenbrowne at mvps dot org.
"G. Wolfe" <GWolfe@discussions.microsoft.com> wrote in message
news:446CA40E-AB91-4D07-A81D-2C2D8D59C6BF@microsoft.com...
> Thanks for the reply...
>
> Is there a way to see a message that states that there are no records
> available,  something like this:
>
> =IIf(subfrmTrialCost_Details.Form.HasData,Null,"No Trial Expense has been
> incurred at this time."
>
> I used this syntax on my reports when there wasn't anything available, but
> I can't get this to work on my form.
>
> Thanks Again.
>
> "Allen Browne" wrote:
>
>> Unfortunately, this has been the way Access behaves for the last 5 
>> versions.
>>
>> If:
>>     a) There are no records in a form, AND
>>     b) no new records can be added,
>> then the Detail Section of the form goes completely blank.
>> Read-only permission gives you condition b.
>>
>> The Form Header/Footer sections are still visible, but Access may not be
>> able to get the values and display these correctly either. Details:
>>     http://members.iinet.net.au/~allenbrowne/bug-06.html
>>
>>
>> "G. Wolfe" <GWolfe@discussions.microsoft.com> wrote in message
>> news:66B72CDB-8B09-4BF8-8C56-9A90E433AEC5@microsoft.com...
>> >I have just placed permissions on my database.  I have found that the 
>> >group
>> > of users that are set to Read-Only can not see my subforms if there are 
>> > no
>> > records to display in the subform.  The subform just appears as the
>> > background color.  If you  switch to the next record on the main form 
>> > and
>> > records exist for the subform, all the fields will appear.
>> >
>> > This looks very odd.  I would like to see the fields even if the users
>> > can't
>> > add in new records...
>> >
>> > Any suggestions?
>> >
>> > Thanks in advance
>> > G. Wolfe 


Relevant Pages

  • RE: Allowing form combo box to show all records
    ... >> I am building a report tracking database using Access 2003. ... On the main form I have a subform that displays a list of ... >> box wizard to allow me to filter out reports associated with a project and ... >> display the filtered result in the subform. ...
    (microsoft.public.access.formscoding)
  • Syntax Problem in accessing a control on a form - Access97
    ... I have a main form which includes a subform. ... the subform to display any one of several forms, ... One of the forms to be displayed (frmToDo) is a continuous form with several ... When I tried to produce and run a report, it became evident that the sorting ...
    (microsoft.public.access.formscoding)
  • RE: How do I overlay variable items on an imported image used for
    ... number before the main form will even open and the data on the report shows ... shouldn't be too difficult to create a subreport. ... The data that the subreport needs to display is from a subform. ...
    (microsoft.public.access.reports)
  • Re: Help!! Im running around in circles!
    ... A subform will display on the form if it has any records. ... You can have subreports in a report -- they are similar to subforms on ... So I want Access to be able to search all patient ...
    (microsoft.public.access.gettingstarted)
  • Re: Read-only user & subforms
    ... > Read-only permission gives you condition b. ... > able to get the values and display these correctly either. ... rather than allenbrowne at mvps dot org. ... >> records to display in the subform. ...
    (microsoft.public.access.forms)