?
Solved

Access detail object properties

Posted on 2007-03-23
6
Medium Priority
?
200 Views
Last Modified: 2013-11-28
Hello,

     I'm trying to understand/ figureout how to display (for edit) multiple subsets of data. For example: a subform within a subform. Access 03 will only allow the developer to create one subform deep, however, I need a little more functionality.

     Another related issue: On a subform (in the detail body (Continious form)),  I need a command button (listed in every detail item) to either be visible or invisible depending upon a return from a query. Is there is way to hide and show select command buttons for each detail item. (Example: Continious form with an employee listed in each detail. If notes exist for the employee (in a separate table) then the 'show notes' command button is visible/ enabled etc.. Again, the problem occurs when a particular object's visible property is set to false, ALL of the objects in every detail item have visible properties set to false. )
0
Comment
Question by:MichaelSwitzer
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
6 Comments
 
LVL 39

Accepted Solution

by:
stevbe earned 2000 total points
ID: 18780627
in Access 2003 you can create multiple levels of subforms ... what is the specific problem you are having? What kind of form views are you using for each level?

For the button problem I would create a calulated field in the query that says "Show Notes" if there is anything in the Notes field


IIF(Len([Notes] & "")>0, "Shoe Notes", "") As ShowMe

then bind that field to a textbox on your form. You can chnage the textbox to be raised and change background and forecground colors so it looks almost like a button and in the click event of that control you test if there is anything in the field before openeing your notes detail form

Private Sub txtShowNotes_Click()
    If Len(Me.txtAShowNotes &  vbNullString) > 0 Then
        DoCmd.OpenForm "frmNotes"
    End If
End Sub
0
 
LVL 1

Author Comment

by:MichaelSwitzer
ID: 18780780
Access won't allow a form to be continious if its subform is viewed continiously. Is there a way to 'get around' this limitation?
0
 
LVL 1

Author Comment

by:MichaelSwitzer
ID: 18780861
More specifically, there exists a Main form with form view, a subform with continious view, and i would like for a second subform (within the first) with a continious view.

To do what you proposed, I would need to create a query (this program's front end written in Access and back end in MSSQL05) that checks a related table and sets each field's value to "Show Note" or (or what have you) and set a text box control source to the qry's filed name holding the 'Show Note' string.
Is this what you mean?

(ps. I liked your Nz expression.)
0
 
LVL 39

Expert Comment

by:stevbe
ID: 18780989
part 2: in essence, yes.

Can you swith from continuous form to datasheet? they can have subdatasheets.
0

Featured Post

Three Reasons Why Backup is Strategic

Backup is strategic to your business because your data is strategic to your business. Without backup, your business will fail. This white paper explains why it is vital for you to design and immediately execute a backup strategy to protect 100 percent of your data.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Preparing an email is something we should all take special care with – especially when the email is for somebody you may not know very well. The pressures of everyday working life stacked with a hectic office environment can make this a real challen…
Access custom database properties are useful for storing miscellaneous bits of information in a format that persists through database closing and reopening.  This article shows how to create and use them.
With Microsoft Access, learn how to start a database in different ways and produce different start-up actions allowing you to use a single database to perform multiple tasks. Specify a start-up form through options: Specify an Autoexec macro: Us…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question