Need File Tree In A Form.
Jul 14, 2005I have a form in which I want to place a box that has a specific file directory displayed at all times for the user to open files from.
Please help!! Really new at this.
:)
I have a form in which I want to place a box that has a specific file directory displayed at all times for the user to open files from.
Please help!! Really new at this.
:)
I want to create a technology tree that is database driven. Something like this:
Tech1 -> Tech2 -> Tech3
xxxxxxxxxx||=>Tech4 -> Tech5
All of the techs follow a specific hierarchy. So if you want to get tech3 in the above example, you need to research techs 1 and 2 first. If you want to get tech5, you need to research techs 1, 2 and 4 first.
Once the layout of the database is there, I want to be able to run queries on specific techs to see what techs are needed to open that tech up. Each of the techs have numbers associated with them also, and I would like to also be able to query a tech, and find out all of the added totals for every tech that is needed to get to that tech. For example:
Tech1 (has values 1a, 2b) -> Tech2 (has values 3a, 5b) -> Tech3 (has values 4a, 7b)
I run a query on tech3, and it shows me that the totals for that tech path are: 8a, 14b. (1a+3a+4a=8a, and 2b+5b+7b=14b).
I know this is possible, but it is very complex. I have some ideas on how to start this, but I would appreciate some feedback/samples on where to get started. If someone spends the time and gives me some really helpful samples, please include your paypal in your post.
This problem is driving me crazy.... :mad:
I have main form which contains treeview control. TreeView contains list of all users that have been added. I add users in pop up form. But when I hit Update button in pop up form the treeview dosen`t want to update.
I can make it work only if I close main form and open it again when I hit Update button on pop up form.
If IsLoaded("frmOsnovnoOkno") Then
DoCmd.Close acForm, "frmOsnovnoOkno"
DoCmd.OpenForm "frmOsnovnoOkno"
DoCmd.Hourglass False
End If
I dont want to close main form ("frmOsnovnoOkno") and open it again I just want to update treeview without closing and opening main form. Please help me.. :)
Hi!
I need a help.
I would like to (if possible) to place into Form an object that could create a Tree-like menu structure. The source from this object should be table/query.
Is this possible?
Many thanks.
Krava :)
Good morning from the UK,
I hope one of you can help me out.
I am looking at setting up a treeview for users, with the idea that it will be easier for people to use.
The data i need to pull of is as follows:-
The table i have is called tbl User Accounts, the true values could be set to false as well as true.
Top Node = User Names
Alastair Lane
Passwordnorman27
AccessDatabaseTrue
AccessUsersTrue
SalesInput True
ProcessInputTrue
AddClients&ContactsTrue
EditReportsTrue
ApprovalOfAccountTrue
ImportReportsTrue
ExportReportsTrue
ManagementTools True
UnLockRecordTrue
Calls35
Nevil Appleton
Passwordpassword
AccessDatabaseFalse
AccessUsersTrue
SalesInput True
ProcessInputTrue
AddClients&ContactsTrue
EditReportsTrue
ApprovalOfAccount True
ImportReportsTrue
ExportReportsTrue
ManagementTools True
UnLockRecordTrue
Calls10
I am not sure how to even start this process so any examples would be good.
Alastair
Hi,
I am part of a team working on part of an ongoing project that requires a flexible and easy to update database from which to compile our data. The general format that we have, is that of a "Tree Diagram" (see sample attached). As you can see, this is where one branch has in turn several branches and this cascades downwards to some base values.
On the diagram you can see that I have used the example of "Costs In Football". Firstly the tree is branched into countries where football leagues exist (England, France etc...), each of these countries then has a number of leagues - I have only shown this for the English leagues. These leagues are all made up of teams, only following the Premiership league, you can see some of the teams in it (Arsenal, Chelsea...). Using the Liverpool team, the team is then made up of players such as Gerrard, Reina etc...
These players have a specific postion where they play (i.e. Goalkeeper, defence, midfield, attack) - this has been illustrated with only "Gerrard". The next set of branches examines the costs associated with each player (current value, weekly wage...)
The weekly wage is then examined in more detail by what components make it up and their respective costs. I have stopped the tree here and I am using this last line as the base values.
Now, what we wish to do, is to be able to calculate easily (and automatically) what costs are associated at each level of the tree diagram. i.e. "How much money is spent on wages in all the clubs in the Premiership league", or "Which country spends the most on Sponsorship Deals?"
The flexibility of the database must also be high. Each year the teams that make up each league are changed - we need to be able to make these changes to the database - and the automatically calculated values must change along with the changes.
Also, if a club buys a player - i.e. Liverpool (England) buy Beckham (Real Madrid, Spain) then the details for both Liverpool and consequently the Premiership league will have to change, along with the details for Real Madrid and the Spanish data.
In short, additions of data, changes of data and deletions of data must result in the database automatically changing the values involved in each step of the tree. i.e the change made in the Players branch must cascade up and down the branch so that the calculations at every level are recalculated.
Any help and feedback on this would be much appreciated,
Thanking you,
Matt.
Hi,
I would like to create an application with a left side tree menu.
Each leaf of the tree should open a form or launch a procedure.
The branches could expand or collapse.
Nodes could have pics.
There must be a couple of VAB examples. Would you recommend me some of the best ones ?
Thanks
OFC without "+" Now I have something like this in double click event in one of my field
Code:
If Me.SubdatasheetExpanded = False Then
Me.SubdatasheetExpanded = True
Else
Me.SubdatasheetExpanded = False
End If
But this code expand all of my items:/
I need a tree view structure for indented BOM (Bill Of Material) as shown below
Assembly1
Assembly1.1
Assembly1.1.1
Assembly1.1.2
Child1
Child2
Assembly1.2
Child1
Child2
Assembly2
Assembly 2.1
Assembly 2.2 and it continues
I am not sure if this is the correct forum to post this question but I am trying to create a tree view library reference database for several pdf documents I need to index, and would be happy if there is a sample available to download.
Thanks!
Tree view library reference table
I am not sure if this is the correct forum to post this question but I am trying to create a tree view library reference database for several pdf documents I need to index, and would be happy if there is a sample available to download.
Thanks.
Hi
Does anyone know how to do a keyword search in MS access so in a knowledge tree with 100 of records with a few keywords in one of the main fields i.e. symptoms i can reduce the amount of records to go throught
Many thanks in advance
I have requirement to draw a binary tree in forms, how to implement this?
View 1 Replies View RelatedI have a form with a Treeview in. I have it populated from a self-referencing database using the following code.
Code:
Private Sub Form_Load()
Const strTableQueryName = "SELECT * FROM tblHierarchy ORDER BY tblHierarchy.Function_Parent;"
Dim db As DAO.Database, rst As DAO.Recordset
Set db = CurrentDb
Set rst = db.OpenRecordset(strTableQueryName, dbOpenDynaset, dbReadOnly)
[Code] ....
The database this is referencing is about 30000 lines and it takes ~4 minutes to populate this way. I know Treeview isn't really supposed to be used in this way however it's what is required.
Now I have come up with the theory that I will populate each node with children as its clicked to be expanded.
Uploaded my current treeview example ....
I need some VBA coding to do the following tasks
Table 1: two columns - Child Tag and Parent Tag. Parent Tags can also be in Child Tag column. In other words, a parent can have multiple levels of children.
Table 2: one column - Backup Tag.
I'd like to have a form with a combo box, pick a Parent Tag, the search all its child tags and compare each Child Tag found with records in Table 2 to see if there is a match. Then populate all results in a tree view control.
A visual example :
Parent Tag
...Child Tag 1 - Back up tag found
......Child Tag 11
......Child Tag 12 - Back up tag found
...Child Tag 2
......Child Tag 21
...Child Tag 3
......Child Tag 31
.........Child Tag 311 - Back up tag found
i had a database that allowed me from a form to store a file location for a record on a form, so i any time i could access the record, and then open the file, usually a pdf, it wasnt stored as a hyperlink, but as long text
i made the mistake of not copying the files for safe keeping when i got a permanent position..i am now back self employed, i need to recreate the database.
Form: Customers – Uses database Customers indexed on CustName
Form: Contacts – Returns from a list box the name of a valid Customer
Question: Form Customers calls form Contacts. While in the Contacts form, the user can change to a different customer using a list box of all valid customers from which to select. I need to perform (I think) a FindFirst function on Form Customers while in form Contacts, close the Contacts form, and return to the Customer form with it now being positioned to the CustName selected from the list box. All the code I have tried keeps coming back with compile errors. Suggestions with sample code would be greatly appreciated. As usual, I’m sure this is a simple thing to do once I get pointed in the right direction. Thanks in advance.
Ted
Hi
I have a form which has a sub form in it
I created a button which I want when clicked on to export what is in the sub form to an excel file ... Can someone tell me how please
In my table of assembly numbers where each assembly number has a set of work instructions as a pdf file. I'm wondering if it is possible to display the pdf file as an object within a form..?
I know its possible to open this document as a hyperlink but I want it to be embedded within the form.
Hi all
I need to run a certain file from the form
I create a button as follows
Select in the categories "Applications" then select "Run Ms Word"
I have tested it and it open Word but not even a blank page
I then open the code as seen below and want to insert the filename but do not know where. Can someone please help me?
Private Sub Command35_Click()
On Error GoTo Err_Command35_Click
Dim oApp As Object
Set oApp = CreateObject("Word.Application")
oApp.Visible = True
Exit_Command35_Click:
Exit Sub
Err_Command35_Click:
MsgBox Err.Description
Resume Exit_Command35_Click
End Sub
The file is - D:PanelbeatersPb Manual.doc
I have created a Word Doc which is a help file for the new users. I tried to paste it in a new form but it takes only a few lines whereas the Word Doc has five pages. Is there a way to embed/link/paste this help file to my Access DB? Grateful for help.
View 1 Replies View RelatedI am trying to write a little database to view my MP3 collection (as you do when youre bored...)
I have a field that shows the full path to my MP3's
e.g "D:My MP3'siTunes MusicBob DylanDesire 3 Mozambique.mp3"
I want to be able to click on the file link to launch the file in my MP3 player - I have tried changing the field type to "hyperlink", but that still doesn't work...
Any help greatly appreciated.
I have separated my application logic (forms, VBA code, queries) from my data and am unable to open my form. The form is in file DbAppl.mdb and the table is in file DbData.mdb. Any ideas? Thanks.
View 4 Replies View Relatedhttp://www.access-programmers.co.uk/...ad.php?t=97787
I am attempting to add a command button on a form that will allow user to browse files, then select a MS Project file to import, then have it linked to the current record (by a hyperlink or icon of some sort) so that clicking on it will open that MS Project file.
I found the above thread and have imported the modules and the fFindOpenImportFile in order to test in my database. I have made only slight alterations to the code, as I am still a novice w/ VB, but may not have done so correctly. In the Private Sub bImport_Click, I inserted 'tbFile' where sample "C:WindowsWin.ini" had previously been, so that it will import the file already selected from the bBrowse_Click. (If there is a cleaner/better way to do this, I would appreciate any help.)
Here is an exceprt from the code:
Private Sub bImport_Click()
On Error GoTo Err_bImport_Click
Me.tbHidden.SetFocus
If IsNull(tbFile) Or tbFile = "" Then
MsgBox "Please browse and select a valid file to import.", vbCritical, "Invalid File"
Else
If Dir(tbFile) <> "" Then
CurrentDb().Execute "DELETE * FROM tImport"
'FileCopy "C:WINNTWin.ini", "C:WINNTWin.txt"
DoCmd.TransferText acImportDelim, , "tImport", "tbFile", False
MsgBox "Your file has been imported into the Database."
Else
MsgBox "Your computer does not have a C:WindowsWin.ini file so the import example will not work.", vbInformation
End If
End If
Exit_bImport_Click:
Exit Sub
Err_bImport_Click:
MsgBox Err.Number & " - " & Err.Description
Resume Exit_bImport_Click
End Sub
The imported form works great for 'Browse' or 'Open', but when I try 'Import', I get the following error:
2391- Field 'F1' doesn't exist in destination table 'tImport'
I even went back to the sample database and tested the form within the sample, using "win.ini" file and get the same error????:eek:
Of course, when I try it with an actual *.mpp file, I get this error:
31519- You cannot import this file.
...which leads me to believe that even if I fix the first error, I might be on the totally wrong path b/c it's an *.mpp file???:confused:
Any help would be greatly appreciated.
Thanks in advance for any help!
I wish to display my database file name on a form.
Can someone please advise me.
Thanks
Hugh
My .mdb file was getting too large (500+ mb) and taking a long time to compress, so I separated my application logic (forms, modules, queries) from my data (tables) and now I'm unable to open my form because it can't find the table it's based on. The form is in file DbAppl.mdb and the table is in file DbData.mdb. I thought I could point my form in the one mdb file to the table in another by putting ME.RecordSource = C:xxxDbData.mdb in the Open Form event, but I can't seem to get it working.
View 1 Replies View Related