FlashMax . . .
Your skills as a developer are showing!
![[surprise] [surprise] [surprise]](/data/assets/smilies/surprise.gif)
Your design schema (as I thought) is all wrong. You also need some way for employee's to sign in and have their passwords checked. The [blue]database password[/blue] won't do as its [blue]static[/blue] to all, and [blue]access security[/blue] is quite a bit out of your league. Also ... if your VBA shills are down, you have a very tough fight ahead. The outline that follows is based on the following general tables:
[tt][blue]tblEmployees
************
EmpID as AutoNumber PrimaryKey
FName as Text
LName as Text
ScnName as Text [green]'ScreenName[/green]
PWD as Text [green]'Password[/green]
ADMIN as Yes/No
tblProjectTime
**************
ProjID as AutoNumber PrimaryKey
EmpID as Long [green]'ForeignKey[/green]
Project as Text
Hrs as Single[/blue][/tt]
[ol][li]When the database is 1st opened the database window is completely hidden and remains so until an admin is detected.[/li]
[li]The 1st form to open (automatically) is the login form. ScreenName and PWD are entered here and via a button they are lookedup to see if they exist. If they exist the [blue]EmpID[/blue] of that person is used to filter tblProjectTime. If they don't exist the user can try again or the db can be closed.[/li][/ol]
To see the effect of hiding/showing the db window, make a new form with two buttons. In the [blue]On Click[/blue] event of the button to [blue]show[/blue] the db, copy/paste the following:
Code:
[blue] DoCmd.SelectObject acTable, , True[/blue]
... and for the [blue]hide[/blue] button:
Code:
[blue] DoCmd.SelectObject acTable, , True
DoCmd.RunCommand acCmdWindowHide[/blue]
Open the form and restore down the form so you can see the db window and test the buttons.
For your reference:
Fundamentals of Relational Database Design
Since you have to start over with your table schema hop over to forum700 and explain what you need there.
[blue]Your Thoughts? . . .[/blue]
See Ya! . . . . . .
Be sure to see thread181-473997 [blue]Worthy Reading![/blue]
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)
Also faq181-2886 [blue]Worthy Reading![/blue]
![[thumbsup2] [thumbsup2] [thumbsup2]](/data/assets/smilies/thumbsup2.gif)