Results 1 to 2 of 2
  1. #1
    jase118 is offline Novice
    Windows 7 Access 2003
    Join Date
    Jun 2010
    Location
    Plymouth, UK
    Posts
    6

    i have a good 'schema, where do i go from here?

    Hi, I have used this and many other forums to develop what i believe is a good table layout and have established my relevant relationships between the tables.
    My knowledge of Access is limited (i have built DB's but a long time ago).
    I am now trying to build the second phase of my database, the queries.
    My DB is a water sports booking system and we are run on a low budget so i can not afford to get this done professionally.
    The functionality i need is to:
    Add/remove Courses
    Add/remove Sessions to the courses (a course may run 5 sessions a year)
    Add/remove members to each course

    I require a lot more functions down the line but this is the basics of my DB.
    I am not sure were to start with bringing all the tables together to get the desired results.


    This is my table layout:
    tblMembers
    -pkMembersID
    -txtFirstName
    -txtLastName
    -fkRank
    -txtNumber
    -txtAddress1
    -txtAddress2
    -txtCity
    -txtCounty
    -txtPostcode
    -txtMil
    -txtTel
    -txtMobile
    -txtEmail
    -ActivInd

    tblRank
    -pkRankID
    -txtRank

    tblCourses
    -pkCourseID (1 to many link to fkCourseID)
    -fkCourseType
    -numMax (maximum places available on the course)
    -curPrice
    -logIsAvailable

    tblCourseType
    -pkCourseTypeID (1 to many link to fkCourseType)
    -txtCourseType

    tblSessions
    -pkSessionID (1 to many link to fksessionID)
    -dteStartDate (session start date)
    -dteEndDate (session end date)
    -fkCourseID

    tblSessionMembers
    -pkSessionMembersID (1 to many link to fkMembersID)
    -fkSessionID
    -fkMembersID
    -logPaid
    -logInstructionsSent
    -numPlacesRequired

    Where do i go from here?

  2. #2
    TheShabz is offline Court Jester
    Windows XP Access 2003
    Join Date
    Feb 2010
    Posts
    1,368
    Look up the INSERT INTO, and DELETE FROM sql structure. That should give you a good start. What will most likely end up happening is that you will create a form and use that to enter data. so lets say you want to create a new course using textboxes in a form. syntax would be (assuming courseID is a autonumber field):
    INSERT INTO Courses (fkCourseType, numMax, curPrice, logIsAvailable)
    VALUES (Forms!myForm!txtCourseType, ....)

    That's if you would be doing it in the query builder. If you end up doing it in VBA (more powerful and my preference) you would have to create a string holding the sql before you can run it. You will need to look up concatenation, the "firstpartofstring" & variable & "last part of string" form. for the variable, instead of Forms!myForm!txtCourseType, you would have Me.txtCoursetype where txtCourseType is the name of the control (textbox in your form) that holds the value you wish to insert into your string.

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Replies: 1
    Last Post: 06-02-2009, 04:44 PM
  2. Replies: 4
    Last Post: 05-16-2009, 09:17 PM
  3. SQL - Read any good books lately?
    By metaDM in forum Queries
    Replies: 2
    Last Post: 03-05-2009, 12:46 PM
  4. Extracting Database Schema From Access
    By ChloeRadshaw in forum Access
    Replies: 0
    Last Post: 01-29-2009, 04:49 PM
  5. Creating a *Good* Custom Message Box
    By Jerimiah33 in forum Forms
    Replies: 1
    Last Post: 11-09-2005, 04:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums