Recent content by rich.barry

  1. R

    Display entire cascading query structure

    Here is the code for creating the dependency tree..... It works well for me. If you don't want to use the 'Type', you could replace it with arrays in the Sub instead. Public Type jobListType Position As String Level As Integer ObjectName As String End Type Sub QueryDependencies()...
  2. R

    Display entire cascading query structure

    MarkK - that's a great bit of SQL to have ! I had previously iterated through the QueryDefs and written them to a table, but your SQL presents it in a much a nicer format that shouldn't be too hard to turn into a tree. Thanks for the help.
  3. R

    Display entire cascading query structure

    Is anyone aware of an add in or code to display the entire structure of a query that has multiple levels of dependency, e.g. Query 1 uses Query 2 which uses Queries 3, 4 and 5, each of which use further queries and/or tables ? I want to see the paths from Query 1 through all the source queries...
  4. R

    Subtotal for each change in field

    Hello I just thought up something useful I thought I'd share, given my previous method was rather complicated. When wanting to Subtotal for each change in a field in a Query, e.g. [Field1] = Apples, Apples, Apples, Oranges, Apples, Apples, Bananas having a discrete subtotal for the first...
  5. R

    CurrentDb.QueryDefs returning obsolete definitions?

    C&R did not fix anything. What I had were a number of query defs for controls on forms that had been deleted a long time ago. C&R had been carried out multiple times since the form had been deleted, but the query defs that weren't linked to anything still existed. To get rid of the query def...
  6. R

    CurrentDb.QueryDefs returning obsolete definitions?

    Unfortunately compact and repair doesn't clean up this rather persistant rubbish. The ~ items include the form listboxes, combo boxes etc with SQL for the RowSource, so most of them are quite relevant. It appears that to get rid of the ones that shouldn't be present, I have to re-create the...
  7. R

    CurrentDb.QueryDefs returning obsolete definitions?

    Hello I have a bit of code (below) that writes my QueryDefs to a table so that after any changes to object names, I can search the querydefs to check if there are any places referencing the old object name that I need to update. For C = 0 To CurrentDb.QueryDefs.Count - 1 With...
  8. R

    Addressing MSGraph 8 secondary Y axis

    Just to complete the answer to this, in case someone ends up at this thread via a search in the future, .Axes(2,2) allows you to set the the properties of the secondary Y axis.
  9. R

    Addressing MSGraph 8 secondary Y axis

    Hello I am using an XY MSGraph 8 control where I am setting axis scales via VB using: gphVeneerStock.Object.Application.Chart.Axes(1).MaximumScale = value .Axes(1) works for x axis and .Axes(2) for y axis I can't seem to find out how to address the secondary Y axis. Does anyone out there...
  10. R

    Combo Box will not display items

    Very good guessing Missinglinq Yes to all of Access 2003, SP3 and tables formatted with >. Removing the formatting didn't help, but the hotfix has sorted the problem out. Thanks for your help. Rich
  11. R

    Combo Box will not display items

    Hello We've just encountered an odd problem with a database that has worked fine for years. Following the move to a new server, I re-linked the frontend to the new back end location, and now find that the majority of combo boxes refuse to display the contents of the queries on which they are...
  12. R

    Access Sub-Total Function Code 4 u

    A while back I wrote a procedure to carry out sub totals within Access similar to the function available in Excel. I might as well share it here, and others can hack it around to fit their own needs. Here's an example of the sort of thing I'm using it for. A production system writes time...
  13. R

    show multiple lines in listbox

    If the data in your field is to wide to fit the column width in the list box, there is no way that I am aware of to make the row in your list box more than one line deep to contain it. The widths for your columns within the list box are set in the Column Widths field. Seperate them with a semi...
  14. R

    Code triggered from Label On Click behaves differently from Command Button On Click

    Thanks Guys. I had endlessly messed around with SetFocus, which did set the focus where it was told, but still would not respond to the mouse. However opening the form with as a Dialog box is something that I had overlooked, does work, and is going to enable me to move a certain amount of...
  15. R

    Code triggered from Label On Click behaves differently from Command Button On Click

    Often I use Labels as buttons due to the fact I can colour them the way I want, and use the on click event to trigger code. The code below however works for a command button, but not a label button. DoCmd.OpenForm "frmdatetime" Do While Forms!frmdatetime!OKFlag.Caption = "False" DoEvents...
Back
Top Bottom