Re: Need VB code for add sequential records to table



Keith

I put this code in the text box default value and received a error when i
pulled the form up.

"Keith W" <here@xxxxxxxxx> wrote in message
news:4378bb22$1_1@xxxxxxxxxxxxxxxxxxxxxxxxx
> "Danny M" <prosoldier@xxxxxxxxxxx> wrote in message
> news:OsxnEiT6FHA.3616@xxxxxxxxxxxxxxxxxxxxxxx
>>I need the code for adding sequential records to a table.
>>
>> My table name is "WiresOut"
>> My field for updating is "Number" and is a text field
>> My field on the form is "Number"
>> My Starting number "B0000"
>>
>> Any help would be appreciated
>>
>>
>>
> You can have sequential numbers by setting a textbox default value to
> (IIRC) "=DMax([MyNumberField])+1". You'd need to handle nulls if you're
> supplying an empty database to your user(s). If the alpha part of the
> "number" is always the same then there's no need to store it. BTW I
> wouldn't user "Number" as a field name as it may cause confusion when you
> come to write code.
>
> HTH - Keith.
> www.keithwilby.com
>


.



Relevant Pages

  • Re: OT - Is it really worth saving any more?
    ... No one made them get up to go to the store, be it Wal Mart, Best Buy, JC ... those seeking some sort of alpha or celebrity status, ... manipulated by the marketing industry and driven by advertising to ...
    (rec.woodworking)
  • Confused by salt
    ... I hope someone can help clear my confusion. ... time back that used a hash function to store a password. ... advised me that I really ought to use a salt with this in order to add ...
    (sci.crypt)
  • Re: query too Complex
    ... What I wrote in my first post. ... Sysdoes not make any difference btw. ... >>> in VFP9. ... Are you running this as a macro or trying to store the whole ...
    (microsoft.public.fox.programmer.exchange)
  • Re: ..visited the new Guitar Center store in central MA, today.. HAHAHAHAHAHAHAHA
    ... I walk in, things look like ya normal Guitar Center store, tucked away behind ... some bedding store (doing more walk-in traffic, btw). ... of fake amp cabs. ... He then asks about my REEVES amp T-shirt, asking who they were, ...
    (alt.guitar.amps)
  • Re: listview problem....
    ... controls don't allow keys that start with a number (to prevent confusion ... People often want to store a number as a key. ... For some reason I must have thought that ...
    (microsoft.public.vb.general.discussion)

Quantcast