Driving DB Project Relationship

Mar 15, 2008

Hi, i have several tables in my database, wanted to know if the tables between:

Client -----> Theory

Client -----> Practical

are 1 to 1 relationship, right? Client can do one Theory, Practical.. but what if Client failed Theory, is that saying they can do more? I'm confused with the whole logic on this. Any help would be appreciated.

Thank You! :)

View Replies


ADVERTISEMENT

How Do I Complete This Project? Need A Few Answers To Finish DB Project.

Apr 25, 2005

I have tables and forms setup but I have 3 general questions on how to finish the project.

1. Should I create a folder where all the files reside for instance, create a phone log folder, put the DB file into the folder and export XML's into the same folder?

2. How do I get the form to launch as a self-contained form without the Access application in the background?

3. How can I get this form and table to automatically update an XML spreadsheet whenever records are added?

4. How can I get the form to sort all records according to time logged? The time will be entered in manually and we need all the records to sort automatically by time in ascending order.

View 5 Replies View Related

This Is Driving Me Mad!!

Mar 18, 2005

Can someone please help me because this is driving me insane!!

All I want to do is open a form which automatically copies the ExampleID from another form which is open.

For example on an Orders Form there will be an OrderID (Primary Key) so when I click to open the OrderItems form, which will open so that I can add an item to the Order, I need the same OrderID (Foreign Key) to automatically match the OrderID from the Orders form.

I've tried making the default value for the OrderID (Foreign Key) = the OrderID on the Orders form but the database doesn't like this method and produces errors!

Does that make sense? I hope so as I am in need of a very kind persons help!!!

Thanks,

Paul.

View 5 Replies View Related

Help, This Is Driving Me Insane!

Nov 9, 2005

My query looks like this...The problem is that when I have one Radio with two records where [Defect fixed?] is false it counts that as two separate radios instead of one. Somehow I need to make it sum records with the same Radio/Serial_number as one...Anyone have any suggestions?

SELECT DISTINCT Defect_Log.[Defect Fixed?], Defect_Log.Station, Part_Number_Log.Type
FROM Part_Number_Log INNER JOIN (Serial_Number_Log INNER JOIN Defect_Log ON Serial_Number_Log.Serial_Number = Defect_Log.Serial_Number) ON Part_Number_Log.[Part Number] = Serial_Number_Log.Part_Number
GROUP BY Defect_Log.[Defect Fixed?], Defect_Log.Station, Part_Number_Log.Type
HAVING (((Defect_Log.[Defect Fixed?])=False) AND ((Defect_Log.Station)="station 1") AND ((Part_Number_Log.Type)="vhf"));

View 1 Replies View Related

This Is Driving Me Crazzzzy!!!

Sep 11, 2004

I have attached a very small table with one query. I need help having the query perform a calculation. NOTE: I do not want to achieve the calculation in a form or a report.

Thanks so much for the help - John

View 3 Replies View Related

Relations Driving Me Crazy

Mar 3, 2007

Hi,
I'm trying to build a mdb which holds customer details, which insurance they have, who sold them this and which Insurance company provided this.
The relations I have to make are driving me nuts !
When I try to enter a new customer in a Form, there is a advisor added, the package the customer wants is added. But this shouldn't happen for the advisor and the package allready exists !

Who can help me with the proper relations ?
Attached is screendump of the current relations.

Thanks a lot !

View 8 Replies View Related

Relationships... Driving Me Crazy!

Oct 18, 2006

Hehe... and since me and my girlfriend just broke up, that seems applicaple both in the dbase and the real world ;)

I have one Access Database. For now containing three Tables:

KlantNAW (customer adress data) with one primary key, Klantnummer (clientnumber) which is an Autonumber Data Type, Long Int, Increment, Indexed: Yes (No dupes).

CaseDateTimeInfoTable with one primary key, Casenumber which is an Autonumber type, Long Int, Incremental, Indexed: Yes (No dupes).
Within this table I have included the Klantnummer field from KlantNAW as a Number, Indexed: Yes (dupes OK).

CaseTechInfoTable with no primary keys but with both the KlantNummer field and the CaseNumber field included. Both have a direct relationship to the tables in which those two values are created. Both values are now of type Number, both are Indexed, but Klantnummer is set to Duplicates OK and Casenumber is set to No Duplicates. I don't know if it might be wiser to just not index those values in this table, since they are already indexed in the tables in which they are created, if someone could tell me which is better in this case, please do.

I have created a one-to-many relationship (well actually, access seems to decide whether it becomes a one-to-many or one-to-one relationship) between KlantNAW.Klantnummer and CaseDateTimeInfoTable.Klantnummer with Join Type 1 and I've created a Join Type 1, one-to-many relationship between KlantNAW.Klantnummer and CaseTechInfoTable.Klantnummer.
There is only one extra relationship left, which is a one-to-one, Join Type 1 CaseDateTimeInfoTable.CaseNumber with CaseTechInfoTable.CaseNumber.

So ehrm.... a recap:
KlantNAW.Klantnummer (P-key) with CaseDateTimeInfoTable.Klantnummer
KlantNAW.Klantnummer (P-key) with CaseTechInfoTable.Klantnummer
CaseDateTimeInfoTable.CaseNumber (P-key) with CaseTechInfoTable.Casenumber

If I leave it like that the dbase works perfectly except for the fact that when I delete a customer the related case date/time info and the case tech info don't delete with the client account accordingly.

So, I thought I'd "Enforce Referential Integrity" and "Cascade Delete Related Records". I do not know if it would be wise to also enable "Cascade Update Related Fields". Could someone please tell me if that would be wise to do or not? And maybe even why... I have some beginner and more advanced books but can't be sure, probably because of lack of experience (or maybe lack of brains ;) ).

Anyway, back to the problem: when I make all the relationships to Enforce Rererential Integrity and I add a customer through a form (KlantNAW_InvoerForm) and click the "Create new case for this customer" button, the form I use for entering the case date info pops up nicely, but when I try to close that form I get an Error stating: "You cannot add or change a record because a related record is required in table "KlantNAW"". So, I click ok, then get a messagebox stating I can't save the record at this time. Do I want to close anyway? .... well, ok. Let's do that. And now the strange thing is that after that, when I do absolutely nothing other than pressing the create new case button again, enter the date/time info into the form and close it again, no errors or messages come up. Wel... that should happen the first time around right? What's wrong?

Now... I'm really lost. I'm new at this. I made some tables, queries and forms, set all options for all values, that which I didn't understand mostly tried solving or finding out on my own but now I'm hitting a brick wall.

If you guys and gals could help me out I would really be very grateful for that.

EDIT: I even tried making it more simple by removing all relationships and creating just one new one between KlantNAW.KlantNummer and CaseDateTimeInfoTable.Klantnummer (type 1, enforce referential integrity and cascade deleted records) but still, the same problem arises.

EDIT2: made sure it was not a form thing by just putting in data in the table data views directly. Same thing occurs.

View 14 Replies View Related

Yes/No Field Driving Me Crazy

Nov 13, 2007

I just started learning Access and I have created a database with 53 records, 3 tables and 1 Split form. I creared a new yes/no field and I am attempting to display "Completed" in green for yes and "Not Completed" in red for no. I used the correct code in the format field:

"Not Completed "[Red];" Completed "[Green]

This worked for different field before I created the split form but now I cannot get the new field to display anything but check boxes regardless of what code I use. It won't even let me use the default yes/no, true/false or on/off options.

I've been studying this for about 2 weeks and I've figured out quite a bit but this one thing is really iritating me....:eek:

Help
Any comments would be appreciated
John

View 3 Replies View Related

Charts Driving Me Crazy

Jul 19, 2005

I am trying to create a chart on a Form. In Excel I have no problems arranging my data. This is my first try for charts in Access. I have a table. I created a query summing two fields of this table:

Total Workers
Total Workers: DCount("[WorkerNameLast]","1-StationVerifyTbl","[ClockNbr]<>'*'")
Total Workers = 120

Total Verified
Verified Workers: DCount("[WorkerNameLast]","1-StationVerifyTbl","[StaPrimary]=True")
Total Verified = 43

So far so good. That is the correct information. What I want in a Chart is two bars side by side. One bar at 120 and the other bar at 43. I have tried everything and cannot get this to work. I am getting confused on the Axis, Data, & Series. I think I need another Field somehow. The totals I would call Monthly Totals

Could someone please help me get this thing started. I have wasted a week and feel like I have learned nothing except how to count in the Query.

After this I would like to be able to show a percentage of those verified. I have 120 workers and 43 are verified. That would be approx 35%. Anyway I am assuming that there is a solution and that I am just floundering for nothing. Thanks in advance.

View 8 Replies View Related

Subforms And Textboxes Driving Me Crazy

May 27, 2006

I have a subform with textboxes for data entry.
I want the last data entered to stay displayed in the textboxes after the form is closed.

When the form is re-opened the textboxes display a row af data several rows down.

How do you link the textboxes to the feilds of the subform the new data is always at the top row.

Example:

Form textboxes data Entry:
Apples Oranges Pears grapes

Click command button to save:

Subform displays
Apples Oranges Pears grapes
Grapes Kiwi Tangerines Corn
Beans Lettuce Okra Rice

Close form Text boxes still display Apples Oranges Pears Grapes
Open form back up

Text Boxes Display
Grapes Kiwi Tangerines Corn

Subform Displays:
Apples Oranges Pears grapes
Grapes Kiwi Tangerines Corn
Beans Lettuce Okra Rice

How Can I make this work Right?
If anyone knows how to do this please Help.
If it must be done in code please provide an example.
I need to get this worked out this weekend.

Thanks for all the help
You guys are great!:D

Charles

View 4 Replies View Related

Dates Search Is Driving Me Crazy!

Jun 14, 2006

Hello!

Hope someone can help. My code behind my command button is not working. It is opening Report1 but not the criteria in the query.

I have a form (form1) with 2 unbound text boxes on, called "txtDatefrm" and "txtDateto" in which dates can be entered. There is also a command button on the form which searches for these dates and then opens a report(Report1). The report's control source is a query. (query1). On the ExpiryDate field in the query I have the criteria:
Between ([forms]![form1]![txtDateFrm]) and ([forms]![form1]![txtDateTo])

Behind the command button I have the code:
Dim stdocname as string
Dim ExpiryDate as Date
txtDateFrm.setfocus
ExpiryDate = txtDateFrm.text
If Trim(ExpiryDate) <>"" Then
stdocname = "Report1"
Docmd.Openreport stdocname,acViewPreview
End if

Many Thanks for any suggestions!:eek:

View 4 Replies View Related

Error 3021 Is Driving Me Nuts

Jan 14, 2006

Hi
I am having a real hard time with access weared errors. I am using following code:

Me.HistorySymptoms.Form.Refresh 'Just to make sure. It was a try because of error
If Me.HistorySymptomTab.Visible = True Then 'It is a subform in a tab page
For counter = 0 To 29 'Number of fields in the recordset
If IsNull(rs.Fields(1 + counter).value) = False Then ' Just to check Null values
MsgBox rs.Fields(counter).Name 'For debugging
Old_History(counter) = rs.Fields(1 + counter).value 'This line has problem
End If
MsgBox rs.Fields(counter).Name & " Done.||" & counter
Next counter
End If

The error comes in the maked line on accessing the field value. Previously I had another error but after going through the process of "Corrupt Access file correction", I am getting this one. My form has subforms in tabpages. I want to save all the field values to the array on pressing a button. Button is part of the main form and code copies values from a subform. I don't think my file is corrupt as I went through the process twice :-(
Looking for help
RMA

View 2 Replies View Related

Run-time Error '438'. - Driving Me Crazy

Sep 11, 2003

Run-time error '438'. Object doesn't support this property or method

The command:

If Not IsNull(DLookup("[JSANo]", "JSA", "[JSANo] = '" & Me.JSANo & "'")) Then

I think the rest of the code is uncessary. I have searched Google over and over. From what I can gather this error can mean more than one thing.

I have moved the data into another new exact same field, deleted the old field, renamed the new field to have the old field name. Still keep getting this message. At one time, I had messed with the index settings on the field. Thought I saw something about that can cause problems.

I have this exact same command on another field name and it works perfectly, but on this one I get the above error. Ideas?

View 1 Replies View Related

Arrggh- Update Query Driving Me Bonkers!

Feb 15, 2007

Hi all,

im having trouble with an update query wher i need to update one field [class] of a table [txStudents] from an existing query Newfacility_Students where the StudentId in [txStudents] matches the StudentId in Newfacility_Students

thought it would be simple enough


UPDATE txStudents
SET Class = Newfacility_Students.class
WHERE ((StudentId = Newfacility_Students.StudentId));

it's not working it says it prompts me for this Newfacility_Students.class
but when i add that table to the design view it messes up the syntax in the sql view

UPDATE txStudents Newfacility_Students
SET Class = Newfacility_Students.class
WHERE ((StudentId = Newfacility_Students.StudentId));

any ideas?

im going crazy!!

dubs

View 1 Replies View Related

This Is Driving Me Nuts - Query Criteria From A Text Box.

Oct 15, 2007

I have form that will pop up to run a report, and allow the user to select a state for that report.

There is a combo box which you can select a state, then based on what state it is, it puts a criteria value into an unbound text box on the form.

The query has this set as the criteria:

[Forms]![frmStateSelection].[txtStateFilter].[Value]

I have also tried just:

[Forms]![frmStateSelection].[txtStateFilter]

The value of the text box is:

Like '5???????'

When the query is run, it returns 0 results. However, if I put in Like '5???????' as the criteria in the query itself, it runs properly.

I tried closing the form and running the query so that it asks me for a value since it can't find that textbox since the form is closed. I pasted in Like '5???????' and it returns 0 results.

I have used this method for entering start and end dates for reports before and it has worked just fine. I can't figure out why it isn't working here. Any thoughts?

View 13 Replies View Related

One Db Works, A Copied Version Doesn't. Driving Me Nuts.

Nov 13, 2006

hi,

i made an attendance db for work and got it to work. i then copied it and made two more for years 2 and 3. Years 1 and 3 work perefectly but for some reason the year 2 db won't allow me to write the data.

this is driving me nuts as i have already spent a few hours putting the students in and their course selections. i've tried making the forms again and as soon as i use a joint sub form to get the students first name the problem occurs. i've looked at the properties of the forms and they allow edits etc..

if anyone is feeling kind and has a spare moment, could you let me know why it doesn't work.

cheers

View 6 Replies View Related

New Project

Apr 18, 2006

Hi guys. Back on the development trail having enjoyed a long break after the birth of my son :)

How quick one forgets!!

Project: My father-in-law would like me to develop a DB for his new company. They buy and sell plant hire (all done the old fashioned way, on paper).

His requirements are a little beyond anything I have attempted in the past so was hoping for some sound advice.

He would like to be able to record both Sales and Purchases. I have never worked with Stock before. What is the best method, any examples (did a search on stock prior to posting). He would also like to have VAT as an option (this stumped me on my last project!!).

Many Thanks,
Phil.

View 5 Replies View Related

My New Project Help

Mar 13, 2007

Hi People, great forum here and i've learned loads in a few hours ive found it :D

im just wanting a bit of information or some pointers as i cant seem to find anything on the forums about it, first off i have a DB (access) with a list of employees in i have variuos reports and other tables etc, what i want to be able to do is get access to work along side Word, -

i need each employee to fill out variuos forms that come in word format , i want to know if A, is it possible to auto fill a word document out with variuos information from the DB, as im pretty new to access and have no working knowledge of VB then im stumped - then B, i want to be able to save this in a folder on a network drive and have access to the form etc or scanned form etc for each employee.

any help would be great on this as my brain is havin an overload and i only have a certain time cale for the project


thanks in advance to anybody who can show me any pointers

View 1 Replies View Related

Help Me In This Project

Nov 12, 2007

this Project about computer company , the Boss of this company want from me to make database help him to know :-

Customer's Information.
what the customer's invoce , pay , remain.
Supplier's Information.
money come , money go.


that's not all , but it's the main points , I just want the any project similar to my project....... or at least , sites have examples for what I want.

NOTE : I attached Company.zip that contain Company.mdb and Company.accdb (they are the same) that what I made until now.

waiting for answer , and thanks in advance

View 3 Replies View Related

A Little Project I Need Some Help With.

Mar 13, 2008

Hey guys, new here and I need a little help with a project my boss wants me to complete.

Basically right now, he has a huge directory of quote sheets that he fills out whenever he wants to generate a quote for a customer (they are excel files, i've attached a picture of one). He wants me to create something that will scan through this directory file by file and extract certain pieces of information from each excel file, and put them into a database. The company I work for isn't too big, so i'm going to use access as the database.

I've also suggested building a new quote sheet in VB, and programming it so everytime the form is closed, the certain pieces of information he wants will be saved into the database. So I guess after this we can forget about Excel. But also, he wants to be able to bring up the entire quote sheet again if need be.

If you guys could please help me out, what would be the best way of going about doing this? Am I heading in the right direction as far as my thinking goes?

View 14 Replies View Related

Project Help

Mar 20, 2008

See wip,

28-Mar-08, 06:07 AM

View 8 Replies View Related

Need Help With Me Project Plz

Mar 27, 2008

hi every one,
how r u all
i really need your help
i asked my friend and he told me about u guys
my problem is :
i want to create a database for entering student marks ^^
but i don't know much in access so could u plz help me
i want to u make the Relations so that i can make any form to enter the data i made the relationships but there is problem " i can't enter marks for new student "

Please help i have to submit it this Saturday

i will appreciate for u guys if u make as soon as possible

The prince

this is my file

http://www.tntup.com/file.php?file=1fa534bffc053e8cc460cb9d27c34c5c

View 3 Replies View Related

Need Help With My Project..please

Sep 30, 2006

Hi,
I have a project about creating a data base of Foreign Trade, where I have to choose the country, then to determine the period (years).
so, could you please tell me how:
1- to link a combo box with a query (comob box of list of countries)
2- to link 2 combo boxes with a query of starting date and ending date
(the criteria is: >=[start date]and<=[end date] ).....should I separate this criteria and put it in to 2 columns of same data (years)...I tried it but it didn't work.
3- to link a Run Query command button with conditions mentiond above. When I established the command button, it showed the whole data base, so how can I link it with 2 conditions above.
Waiting your appreciated replies a.s.a.p.

Thanks,

View 9 Replies View Related

Project For School Help!

Apr 13, 2006

Hi all

I am new to this forum and to Access. I have expierience with visual basic.

I am making a program in access for saving data when someone borrows something from you, to keep track of all your borrowed stuff.

Here are my questions.

1) How can I write code for buttons to change the records (movenext, movelast,...) + how can I change the current record? + how can I control a scrollbar via code?

2) How can I change the current recordsource via code and how can I run previously made query statements via code?

3) How can I change the ShowDropButtonWhen property from a combobox via code?

4) How can I control a FlexGrid via code?

5) How can I open another Form with a press on a button via code?

6) How can I save and load an OLE/object image and how can I show them via an ActiveX control?

Thats about it folks

If anyone can point me in the right direction or can give me an example database, I would be very happy:)

Greetz
Frederik

View 2 Replies View Related

Please Help Me. With A Access Project.

Nov 27, 2005

Ok first off thank you for anyone who even reads this.

Iv been assigned a project in using Access 2003 and only Access 2003. Im stuck and getting frustrated and was wondering if anyone would mind helping me.

What my Prof wants is a Access database with a form to do the following

HE wants us to have menue with

5 sandwitch combinations
5 Side (combinations)
3 drink Combinations
2 desert combinations.

Ok he wants us to input 1 of each category as if we were ordering

then he wants us to order it and print out a Recipte with the following info.

Sub total
Tax
Total Purchase
How many Calories the entire order is.

Im attaching a .mdb file with what i have come up with but im not sure if its even going in the right direction. I would forever be in debt if someone would help me.

rename the wendys.txt in the zip file too wendys.mdb

View 1 Replies View Related

Please Help Me. With A Access Project.

Nov 27, 2005

mods could you please del this thread. thx

View 14 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved