Re: Duplicating
From: Kuwait in Army**US (SteveMurphyKuwaitinArmyUS_at_discussions.microsoft.com)
Date: 11/29/04
- Previous message: ylmxw: ".jpg pictures are allowed to store as OLE objects?"
- In reply to: John Vinson: "Re: Duplicating"
- Next in thread: John Vinson: "Re: Duplicating"
- Reply: John Vinson: "Re: Duplicating"
- Messages sorted by: [ date ] [ thread ]
Date: Mon, 29 Nov 2004 01:25:02 -0800
The field is a 17 digit text field example "W915BQ43220851XXX" . If you have
ever been in the military regardless of branch, you will recognize this as a
TCN # or TMR #. If not, no big deal, this is a transportation code for cargo,
air cargo in this case. I work for the Army, preparing and transporting air
cargo on the Air Force cargo jets. What I have developed is a Access program
to accomplish the paperwork in a more efficient manner. Using the "Duplicate"
button helps speeds this process. The problem I have is this TMR/TCN cannot
be a duplicate once used it is never good again. Ideally I would have a
button to duplicate al of the cargo information except the TCN/TMR or have it
automatically change the TCN/TMR even if it is the last digit being the "X"
changing to a numeric value that increased per duplicate. Current I have the
table properties for this field set to duplicates ok, but I really shouldn't
have it set that way. Unfortunately being self Access taught I do not posses
the knowledge, YET, to write a VBA to expound on the current capabilities of
Access. If you can provide guidance I would greatly appreciate it.
Steve
"John Vinson" wrote:
> On Sun, 28 Nov 2004 04:13:02 -0800, Steve Murphy (Kuwait in Army**US)
> <Steve Murphy (Kuwait in Army**US)@discussions.microsoft.com> wrote:
>
> >Using the duplication button speeds data entry tremendously. Is there any way
> >to duplicate and auto change a "indexed (no duplicates)" field, (it is text)?
> >The wholes form revolves around that field, which is comprised of letters and
> >numbers, and I would rather not have duplicates of it.
>
> You'll need to give us some help here. Certainly, it can be changed,
> probably using a small VBA function; but since you don't say what the
> field looks like, what values currently exist, and how it should be
> changed, it's more than a bit difficult to suggest just how!
>
> I'd suggest putting the code to calculate the new value in the Form's
> BeforeInsert event; it would need to use DLookUp() to find the
> previous entry and then some algorithm (depending on the content of
> the field) to generate the new value.
>
> John W. Vinson[MVP]
> Join the online Access Chats
> Tuesday 11am EDT - Thursday 3:30pm EDT
> http://community.compuserve.com/msdevapps
>
- Previous message: ylmxw: ".jpg pictures are allowed to store as OLE objects?"
- In reply to: John Vinson: "Re: Duplicating"
- Next in thread: John Vinson: "Re: Duplicating"
- Reply: John Vinson: "Re: Duplicating"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|