+ Reply to Thread
Results 1 to 13 of 13

Teachers distribution

  1. #1
    Registered User
    Join Date
    01-27-2019
    Location
    Iraq
    MS-Off Ver
    2010
    Posts
    6

    Teachers distribution

    Hello friends how can I disallow of all teachers from a school to distribute in an indicated hall ???
    Thanks
    Please Login or Register  to view this content.
    Last edited by AliGW; 01-27-2019 at 07:23 AM.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Ipswich, England
    MS-Off Ver
    Excel 2016 (Win 10 - Work) & 365 Subscription (Win 10 - Home)
    Posts
    23,044

    Re: Teachers distribution

    Welcome to the forum!

    Sorry, but I have no idea what you are asking.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!

    STOP PRESS: Forum Rules Updated September 2018! Please read them here.
    If anyone has helped you towards solving a problem, then you can thank them by clicking on their reputation star bottom left.

  3. #3
    Registered User
    Join Date
    01-27-2019
    Location
    Iraq
    MS-Off Ver
    2010
    Posts
    6

    Re: Teachers distribution

    I always give you a positive reputation, please tell an administrator that it happened unintentionally and I am regret, Sorry for what happened

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 2000/3/7/10/13/16
    Posts
    46,248

    Re: Teachers distribution

    I have reversed the neg rep for you
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    14,392

    Re: Teachers distribution

    Hello friends how can I disallow of all teachers from a school to distribute in an indicated hall ???
    What does this mean. I don't understand what you are asking. Suggest you tell us what your tables look like (List the fields and type, ie. Text, Integer, etc.) and what you are attempting to determine from the tables. Your code is meaningless without understand the criteria. Perhaps wee can resolve once you explain clearly what the issue is with a simple Query.

  6. #6
    Registered User
    Join Date
    01-27-2019
    Location
    Iraq
    MS-Off Ver
    2010
    Posts
    6

    Re: Teachers distribution

    Quote Originally Posted by alansidman View Post
    What does this mean. I don't understand what you are asking. Suggest you tell us what your tables look like (List the fields and type, ie. Text, Integer, etc.) and what you are attempting to determine from the tables. Your code is meaningless without understand the criteria. Perhaps wee can resolve once you explain clearly what the issue is with a simple Query.
    Thank you Mr.alansidman
    I have a database and I have two tables
    1- (tbl_Hall) which I put hall numbers and hall address
    2- (tbl_teachers) which I write some info about each teacher but teacher's address is important
    In distribution the database distributes each teacher according his/her address and his address should be match with the halladdress in tbl_Hall that means in sample names a teacher in London shouldn't put in Paris should put names in London hall.
    But I have a problem
    1- Prevent all teachers in school (ID_ number 1) in which hall later I write its number in tbl_Hall in fields PreventedSchoolID1 and PreventedSchoolID2.
    Eg: prevent all teachers in school ID_1 from HallSerial 111

  7. #7
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    14,392

    Re: Teachers distribution

    Suggest you attach a cut down version of your database. You will need to zip it to load it here. Additionally, after cutting it down, sanitize it for confidential data and then run a compact and repair to reduce the size. Really need to see it to fully understand what you are trying to accomplish.
    Last edited by alansidman; 02-07-2019 at 04:54 PM.

  8. #8
    Registered User
    Join Date
    01-27-2019
    Location
    Iraq
    MS-Off Ver
    2010
    Posts
    6

    Re: Teachers distribution

    Quote Originally Posted by alansidman View Post
    Suggest you attach a cut down version of your database. You will need to zip it to load it here. Additionally, after cutting it down, sanitize it for confidential data and then run a compact and repair to reduce the size. Really need to see it to fully understand what you are trying to accomplish.
    You are right, here you are.
    Attached Files Attached Files

  9. #9
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    14,392

    Re: Teachers distribution

    I use WinZip V23 and I am unable to open your file. It appears that you are using some other software that WinZip does not recognize.

  10. #10
    Registered User
    Join Date
    01-27-2019
    Location
    Iraq
    MS-Off Ver
    2010
    Posts
    6

    Re: Teachers distribution

    Quote Originally Posted by alansidman View Post
    I use WinZip V23 and I am unable to open your file. It appears that you are using some other software that WinZip does not recognize.
    I hope it works
    Attached Files Attached Files

  11. #11
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    14,392

    Re: Teachers distribution

    I am able to open, but I don't understand your requirements. Can you restate them using the your database and the particular field names in your tables. Please be as specific as possible in your example of your scenario.

  12. #12
    Registered User
    Join Date
    01-27-2019
    Location
    Iraq
    MS-Off Ver
    2010
    Posts
    6

    Re: Teachers distribution

    Thank you Mr.alansidman
    I have two tables
    1- tbl_Hall. Its fields ( ID,HallSerial,Halladdress,preventedschool1,preventedschool2)
    2- tbl_teachers. Its fields ( SID,nawymamosta means teachers name,regez means gender, address,mobile,Holl) so on.

    what a database do:-
    I have many halls for examinations, each hall has a serial number and an address which I write them in tbl_Hall.
    In my form the database distribute teachers in my halls six teachers in a hall three of them Female and others male. but an important thing is halladdress in tbl_Hall should be match with address in tbl_teachers, because we disallow put a teacher in another city.
    briefly I distributed teachers randomly in the halls, six in a hall. my halls not limited.

    my requirement is:
    how prevent/disallow some teachers in a specific hall or more than a hall
    Eg: prevent all teachers that their (SID) means their school ID = 1 from Hall number 111 and 112. because their students exists in that halls.

    maybe my way wrong what's the solution.
    Thanks

  13. #13
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs
    MS-Off Ver
    MS Office 2019
    Posts
    14,392

    Re: Teachers distribution

    I do not have Access available to me right now. I think that what you may want to do it create Cascading Combo Boxes.
    First Box is Teachers, remaining boxes will be for Halls. Look at this link. https://www.fontstuff.com/access/acctut10pfv.htm

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1