F
Frank
Hi all,
I'm new to Access and Visual Basic. I've built the tables, queries, forms
and reports and I'm ready to write my first code (module?). I know I'm
basically asking someone else to write my code BUT... if anybody will "hold
my hand" here... I learn very quickly by example.
To get me moving quickly I need 3 procedures (or whatever they are called
in Access) AND I need to know "where" to locate them. I'm using a separate
message post for each request for procedure help.
"yisturday i didint no hou ta spel computir programar, taday i r wun".
THANX for your time... Frank
---------------------------------------------------
3 Computers (networked, peer-to-peer)
WindowsXP Pro SP3 (NOT using "simple" file sharing)
Access 2003 SP3
---------------------------------------------------
PROC #2 - InsertRecordFromNetworkedPC() ===========
All my "top tier" tables have unique Primary Keys (integer). ALL
"important" relationships have Referential Integrity (don't know if I should
have done that). I don't want to use AutoNumber. I want to track "top tier"
primary keys and be able to "reuse" previously deleted ones FIRST (BEFORE
assigning a
virgin). I have created a table to track the unused(true/false) record
numbers.
1) Contain current "best practice" for error handling and debugging
2) Be ACCESSIBLE from anywhere within the current Access environment
3) IF the user just pressed the <Shift>+<Ctrl>+<Insert> hotkey combination
THEN
4) IF current focus is an "editable" table THEN
5) IF the table has a "supporting" ReuseableKeyTable THEN
6) Determine next available key is ("reusable" or "virgin") THEN
7) Perform the appropriate record lock(s) AND insert new record
8) UNLOCK relevant records
9) ELSE MESSAGE("can't use that HotKey here")
I'm new to Access and Visual Basic. I've built the tables, queries, forms
and reports and I'm ready to write my first code (module?). I know I'm
basically asking someone else to write my code BUT... if anybody will "hold
my hand" here... I learn very quickly by example.
To get me moving quickly I need 3 procedures (or whatever they are called
in Access) AND I need to know "where" to locate them. I'm using a separate
message post for each request for procedure help.
"yisturday i didint no hou ta spel computir programar, taday i r wun".
THANX for your time... Frank
---------------------------------------------------
3 Computers (networked, peer-to-peer)
WindowsXP Pro SP3 (NOT using "simple" file sharing)
Access 2003 SP3
---------------------------------------------------
PROC #2 - InsertRecordFromNetworkedPC() ===========
All my "top tier" tables have unique Primary Keys (integer). ALL
"important" relationships have Referential Integrity (don't know if I should
have done that). I don't want to use AutoNumber. I want to track "top tier"
primary keys and be able to "reuse" previously deleted ones FIRST (BEFORE
assigning a
virgin). I have created a table to track the unused(true/false) record
numbers.
1) Contain current "best practice" for error handling and debugging
2) Be ACCESSIBLE from anywhere within the current Access environment
3) IF the user just pressed the <Shift>+<Ctrl>+<Insert> hotkey combination
THEN
4) IF current focus is an "editable" table THEN
5) IF the table has a "supporting" ReuseableKeyTable THEN
6) Determine next available key is ("reusable" or "virgin") THEN
7) Perform the appropriate record lock(s) AND insert new record
8) UNLOCK relevant records
9) ELSE MESSAGE("can't use that HotKey here")