473,396 Members | 1,789 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,396 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 1240
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.