![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi there, I haven't used FM for a while and I am now supposed to design a database that records information each time a student visits an office and the reasons for the visits. I am not sure how to do this...as I need to keep track of the number of visits but I also want to avoid creating a new record for the student each time they come in, can someone point me in the right direction? Would I need to use relationships to make this work properly? I can't seem to make relationships work. I created 2 tables one which held all the student info. and the other which held both the student info. and the visit information. I was hoping that I could auto-populate the student info. in the second table if I typed in a student id that already existed in the database. But it won't even let me enter a student value at all in the second table. I keep getting an error saying I must first enter a valid student id. ??? Thanks for your time, chris |
#3
| |||
| |||
|
#4
| |||
| |||
|
|
marshachristy (AT) gmail (DOT) com wrote: Hi there, I haven't used FM for a while and I am now supposed to design a database that records information each time a student visits an office and the reasons for the visits. I am not sure how to do this...as I need to keep track of the number of visits but I also want to avoid creating a new record for the student each time they come in, can someone point me in the right direction? Would I need to use relationships to make this work properly? I can't seem to make relationships work. I created 2 tables one which held all the student info. and the other which held both the student info. and the visit information. I was hoping that I could auto-populate the student info. in the second table if I typed in a student id that already existed in the database. But it won't even let me enter a student value at all in the second table. I keep getting an error saying I must first enter a valid student id. ??? Thanks for your time, chris The key to relationships is to have one field in each related table that will contain the same unique identifier. A "key" if you will. Automatically creating a related record from another table is a matter of first defining the relationship (e.g., Student::ID = Visits::ID), making sure that you can create records in Visits from Studen. Place a portal to the Visits table on a Students layout, with the appropriate fields in the portal. Now you find a student's record, and all visits are shown in the portal. When you make a new visit entry in the last line of the portal,your related record are created in the Visits table. No need to go to the Visits layout. Matt |
#5
| |||
| |||
|
|
Hi there, I haven't used FM for a while and I am now supposed to design a database that records information each time a student visits an office and the reasons for the visits. I am not sure how to do this...as I need to keep track of the number of visits but I also want to avoid creating a new record for the student each time they come in, can someone point me in the right direction? Would I need to use relationships to make this work properly? I can't seem to make relationships work. I created 2 tables one which held all the student info. and the other which held both the student info. and the visit information. I was hoping that I could auto-populate the student info. in the second table if I typed in a student id that already existed in the database. But it won't even let me enter a student value at all in the second table. I keep getting an error saying I must first enter a valid student id. ??? Thanks for your time, chris |
#6
| |||
| |||
|
|
held all the student info. and the other which held both the student info. and the visit information. I was hoping that I could auto-populate the student info. in the second table if I typed in a student id that already existed in the database. |
|
Hi there, I haven't used FM for a while and I am now supposed to design a database that records information each time a student visits an office and the reasons for the visits. I am not sure how to do this...as I need to keep track of the number of visits but I also want to avoid creating a new record for the student each time they come in, can someone point me in the right direction? Would I need to use relationships to make this work properly? I can't seem to make relationships work. I created 2 tables one which held all the student info. and the other which held both the student info. and the visit information. I was hoping that I could auto-populate the student info. in the second table if I typed in a student id that already existed in the database. But it won't even let me enter a student value at all in the second table. I keep getting an error saying I must first enter a valid student id. ??? Thanks for your time, chris |
#7
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |