473,797 Members | 3,015 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Help with Access , VB.. Tracking tool

1 New Member
Hey All,

I am new to the forums. Have been reading a bit here on some very useful tips and tutorials here. I am familiar with the basics of Access (tables , queries, forms,) but am such a newb at macros and the VB side of the application.

I have been put to the task of building a tool in which will validate when one user has transferred an clients casefile to another user. as this is a windows NT environment i am using the NT usernames for validation.

In the form you have the clients name which has their current caseworker and their new caseworker which show up in two seperate boxes beneath the clients name.

I have implemented a vb script that pulls the user name of the person accessing the form. To confirm that the case file has been released from the previous caseworker they will enter in their NT ID. The same for the new caseworker. Being that the caseworkers are not trusted i only want them to be able to update the field that is under their name. (sort of so they cant just go and enter the nt username of the other user to validate that they received it)

This is the reason for the initial script that i was talking about earlier
now to get to the point
id like to build a script that validates the user of the form with the username that was entered in the field if the username does not match what the initial script pulled then error message... if it does then it updates in table..also if no data is present it ignores that field (for the new casworkers file).

second part of this question is how do i get it to bring up the previous entry from the table associated with the form

for example (CW = Caseworker and CL-Client)
CW-A transfers casefile. goes to form types in CL-A(generated by query) enters CW-A NT login name in designated field as verification then clicks save(saves in table assoc with form)(username validated by script). CW-B receives casefile goes into same tool Type in CL-A goes into form and under his section enters NT login name then clicks save(updates record that was entered by CW-A) (username validated by script)

is this possible ? or do i need another form for the receiving CW to make this easier? ( which would include switchboard i beleive)

I am sorry this is so long but i am trying to be as descriptive as possible as it is baffling me ... LOL

Thanking you in advance
Mar 26 '07 #1
1 2577
nico5038
3,080 Recognized Expert Specialist
OK, let's start with your main task:
"I have been put to the task of building a tool in which will validate when one user has transferred an clients casefile to another user."

When processing records it's easy to record the caseworker that created or last updated the record.
Just add a field "InsertedBy " and "LastUpdatedBy" . (YOu can even add a datetimestamp for either).
In the form you set the "InsertedBy " field's Default value to:
=environ("usern ame")
Now each inserted row will automatically get the NT userID.

For the "LastUpdate dBy" you need to have a [Save] button with the code:

IF Me.Dirty then
' test for changes on form before recording
me.LastUpdatedB y = environ("userna me")
endif

Getting the idea ?

Nic;o)
Mar 27 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
2768
by: Simon Wigzell | last post by:
I'm looking at the various free and paid website traffic tracking options available. None seem to do quiet what I want and the rest are too expensive. I'm already using asp with an sql database on my site so I'm thinking how hard could it be to program my own traffic tracking? Anyone have any ideas or better yet code! for such a thing? Thanks.
1
2829
by: mcstock | last post by:
before i begin to roll my own, can anybody recommend a web-based application design & tracking tool that provides: functional hierarchy/network definition work break-down structures module definition & mapping to functional hierarchy issue tracking and resolution version and configuration management -- Mark C. Stock
2
4401
by: Steve Mew | last post by:
Has anyone come across a change tracking tool for SQL Server. Specifically the scenario I want is the following : A Production DB needs some modifications to its content. This tool will copy the DB to a dev environment. The Dev environment will be 2 copies of the DB, 1 as a control set and the other the change DB. The developer makes their changes in the Change DB. They test them out and then when they decide the changes are ready to...
2
3547
by: Ian DeRock | last post by:
I'm fairly new to XML. As I can see it, XML is a way to organize data like in a table in a RDB, or the RDB itself. I have used XML in application data, but did not design the actual XML. I have a background in both hardware and software. I want to create an application that will regenerate a resume from the XML Resume that I have. I would like some people to look over my XML Resume data and give me suggestions on the XML. This...
7
1885
by: Hal | last post by:
Hi, Please see http://webmonky.myby.co.uk/problem.JPG I have 1 Text Box in a form (ms access), one for an Order # .I currently have the form working so when I enter (or scan) an order number, that order number (which is a field in a record) is marked as DESPACTHED in a Tickbox Field under that record. Here is the code..
5
3217
by: vbMark | last post by:
Is there an example somewhere on how to make a Help Desk program using C#? ------------------------------­------------------------------­-------- http://www.vbmark.com Only the best freeware. ------------------------------­------------------------------­--------
2
2022
by: collegekid | last post by:
Hi everyone, basically my problem is this: I am using an Access 2000 format. And--I have four subforms in my main form. (Purpose of this is to track projects.) So in my main form I enter the project name, one primary point person for it (1:N list from a separate table), other details, and a manually entered tracking number, which is the primary key. Now, I also need to put down the legal entities, business managers, financial...
12
2478
by: Earl Anderson | last post by:
Recently, as I was 'flipping thru the TV channels', I heard some woman on a CSpan show 'chiding' the federal government for using MS Access for maintaining records on tracking something (I can't recall--maybe guns, maybe chemicals, maybe cancer research, maybe it was AIDS cases) but whatever it was, she snickered and 'poofed' twice as she said something like, "that agency has said they have kept track of it in Access. Can you believe...
0
1799
by: LiveTecs | last post by:
http://www.livetecs.com TimeLive Web Collaboration Suite is an integrated suite that allows you to manage project life cycle including tasks, issues, bugs, timesheet, expense, attendance. TimeLive is available in two different flavors. Hosted version and downloadable version. Downloadable version required certain system requirement to install on local server. Whereas hosted version is already installed on our fully managed server on...
0
9536
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10468
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10021
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9063
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7559
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6802
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5458
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5582
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4131
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.