473,383 Members | 1,846 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Help with an equipment list data base

17
Hi there,
I'm creating an equipment database and have ran into some problems creating it. This is an Engineering oriented Database
MS Access 2010
Here is the basic idea of how I want it to pan out.
Design:

- Users enter a main menu where they have the option of creating a new project, or selecting an existing project and viewing/printing/editing information in that project - I've created the button that leads to a form where I can create a new, all is left (I believe) is just making this work perfectly

- Once the user has selected the project (combo box to select project and press button to go next) A page shall appear that will display ALL Project information for ONLY the specific project that was chosen. On this page I want there to be another button that will lead to an "equipment list" which is specific for this project only. Eventually the user should be able to add/edit/delete data, search for data etc (all the normal functions that a database should have)

Questions: How do I make the next form/report portray the specific data for only that ONE project, and have other buttons on it? At the moment I've only been able to make it bring up another form that allows the user to input data into fields, but not actually display data and then have other buttons/options on there.

Please ask any questions that you wish to grasp a more appropriate understanding of what I'm trying to do, if I haven't explained myself well enough.

Many thanks
Jan 29 '15 #1
8 1236
Seth Schrock
2,965 Expert 2GB
You can only ask one question per thread. Please read the forum's FAQ for posting guidelines and then post each question in a separate thread.
Jan 29 '15 #2
jforbes
1,107 Expert 1GB
Hello Lavely,

As Seth has mentioned, there is a one question per thread. So to answer your first question, you might want to use the function provided at Locking Bound Controls One thing to note on using this code (which works great) is that if you switch to Form editing and then save a Form, after the code has locked down some controls, the controls will be saved as locked. It's not a big deal, you will just need to address this on any Form that uses this code by ensuring the Lock Down code (or unlock) is executed on Form Load.
Jan 29 '15 #3
lavey
17
Hey guys,

Sorry but I've read the FAQ's twice now and can't see anywhere that it specifically says only one question per thread, but my bad.
I have edited the original post to include only one question that is of priority at the moment.

Thanks
Jan 30 '15 #4
Seth Schrock
2,965 Expert 2GB
I think that the easiest way to do this would be to specify the WhereCondition property of the DoCmd.OpenForm & DoCmd.OpenReport commands.
Jan 30 '15 #5
lavey
17
Hi Seth,

So I tried writing this expression into a macro's expression builder under the where condition but its saying that it has an invalid value.

DoCmd.OpenForm "Project Details",,,"p_ProjectNumber ="" & Me.Command20.Column(1) &""

Pretty sketchy on this type of stuff so still getting my head around it. Any chance you would know how I could fix this problem?

Thanks
Jan 30 '15 #6
Seth Schrock
2,965 Expert 2GB
That is VBA code, not a macro. I don't use macros so I'm not sure the syntax for them.
Jan 30 '15 #7
lavey
17
well in that case I'll use it as VBA (may as well learn it)

Private Sub Command21_Click()

DoCmd.OpenForm "Project Details", , , "p_ProjectNumber ="" & Me.CmbProject".Column(0)&"""

End Sub


Syntax error occurs whilst compiling. I had the Command21 in place of the CmbProject, however that just brought up the Project Details form with blank entries (no data from the selected option in combo box)

Edit: I got it working to display the corresponding project, thanks.

Now for a next question: (am I allowed in this same thread?)

- When the user has selected his project and is now linked to this next form, I want there to be a "Equipment list" button which leads to an equipment list. I have imported an equipment list from excel and created a form etc. How will I be able to make it for that equipment list to be populated specifically for just that one project?
example: I select project number S111 and then click on an equipment list which will lead to a split form where I can populate the equipment list. But then I want to go back to main menu and select project number S888 and then go on to populate the equipment list for that project. However the data in this equipment list is isolated just to this project number. Will I need to create separate tables per project or is there some simple method?.. sorry hard to explain this one

Thanks
Jan 30 '15 #8
Seth Schrock
2,965 Expert 2GB
The next question needs to be in the new thread. The reason being that it makes it easier for the next person with a similar problem to be able to search and find the answer.
Jan 30 '15 #9

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: jim west via SQLMonster.com | last post by:
I have website problems with mySQL data base, I have a website and was told the only way to change my password is within my SQL data base files and that it would be over my head buy the site maker,...
0
by: CPS | last post by:
I need some help building a data base/application for storing information. I am using my sql as a sever application.. Email me if you can help me out on this project and I will explain further.. ...
5
by: Will | last post by:
- I know enough ASP and Access to be dangerous :) - I need to put up a data base on our web server with 3 related tables. - They will be accessed by a limited number of people. - Each user will...
3
by: nandhanvijay | last post by:
hi every am trying to connect data base in vb.net but am unable to connect. As per the book am following that says to connect to data base go to tools menu connect to data base option. u will...
3
kaleeswaran
by: kaleeswaran | last post by:
hi! i am going to display list of 200 titles in my drop down box.it is from data base and show it over the jsp page.so each time i open the page then the drop down box value also loaded again...
0
by: apwuhp | last post by:
We have used a data replication product that has replicated our production data base to another server, both servers are AIX 5.3 operating system and IBM DB2 data bases. The product replicates at the...
1
by: gerryis2000 | last post by:
Hi, kindly guide me on how to solve this security problem. i set a passord to the data base and seems to work well. but since several people use the data base and know the passord, i think its risky....
2
Ahsan Ali
by: Ahsan Ali | last post by:
How to make a class data base using multi linked list data structures(in C)?. In class's Database : one column for 'Subjects' and other one for 'student's Roll Nos' . Now the task is to point...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.