T
TraciAnn via AccessMonster.com
My front end is used to track information separate from which the SQL backend
was created. Therefore, I am very limited to changes I can make to the BE.
Case in point:
User Table (BE)
UserID
FirstName
LastName
Status (FK to dboStatus (BE))
The "main application" for the BE has an entirely different "Status"
structure than the requirements for my FE app. Therefore, I added two FE
tables to handle this:
Status table
StatusID (PK)
Status
UserStatus table
UserStatusID (PK)
UserID (FK)
StatusID (FK)
Now I can assign the statuses appropriate to the purpose of the application
without touching the backend table.
The problem:
How can I automatically create the initial userstatus record after a user is
added to the BE through another app?
I assume that I need a logic that runs either AutoExec or a form On Load that
queries the User table that meets the project filter (not all Users appear in
my FE) and compares the UserIDs to the existing UserIDs in UserStatus. Then,
where UserID doesn't exist in UserStatus to create a record using the default
StatusID (=1).
That's my assumption but I don't know where to begin to implement this
thought. I've also learned there are far simpler ways of accomplishing tasks
than what I dream up
Thanks in advance for your help!
was created. Therefore, I am very limited to changes I can make to the BE.
Case in point:
User Table (BE)
UserID
FirstName
LastName
Status (FK to dboStatus (BE))
The "main application" for the BE has an entirely different "Status"
structure than the requirements for my FE app. Therefore, I added two FE
tables to handle this:
Status table
StatusID (PK)
Status
UserStatus table
UserStatusID (PK)
UserID (FK)
StatusID (FK)
Now I can assign the statuses appropriate to the purpose of the application
without touching the backend table.
The problem:
How can I automatically create the initial userstatus record after a user is
added to the BE through another app?
I assume that I need a logic that runs either AutoExec or a form On Load that
queries the User table that meets the project filter (not all Users appear in
my FE) and compares the UserIDs to the existing UserIDs in UserStatus. Then,
where UserID doesn't exist in UserStatus to create a record using the default
StatusID (=1).
That's my assumption but I don't know where to begin to implement this
thought. I've also learned there are far simpler ways of accomplishing tasks
than what I dream up
Thanks in advance for your help!