Welcome to dbFreaks.com!
FAQFAQ    SearchSearch      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Incrementing Invoice Number

 
Goto page Previous  1, 2
   Database Help (Home) -> MS Access RSS
Next:  amine  
Author Message
aaron.kempf

External


Since: Apr 09, 2008
Posts: 457



(Msg. 16) Posted: Thu Jan 01, 2009 1:45 pm
Post subject: Re: Incrementing Invoice Number [Login to view extended thread Info.]
Archived from groups: microsoft>public>access (more info?)

a) Jet doesn't have real locking
b) Jet doesn't have a real database log
c) Jet doesn't have real transactions.

so now _WHAT_ are you talking about?

You're right-- databases that are built by _PROFESSIONALS_ are built
in SQL Server, that's why they don't have these problems.
You're not some sort of 'database architect' just because you run the
database splitting wizard in Jet.

Learn how to use the worlds most popular database before you try to
boss me around, script kiddie!

-Aaron
MCITP: SQL 2005 DBA





On Dec 31 2008, 2:27 pm, "Arvin Meyer [MVP]"
wrote:
> While all of that information is basically true, it neglects to mention that
> a split database, rarely corrupts because nothing is shared except the data,
> and that is locked by the user currently writing to that record or page.
>
> While it alludes to network server connections being dropped as a cause for
> corruption, it neglects to mention that tables without memo fields being
> written to rarely corrupt, even with dropped connections. It also doesn't
> mention that high quality networks, rarely drop a connection. Further, it
> doesn't mention that transactional processing from unbound forms with
> rollback will almost never have a problem either.
>
> So databases designed by intelligent professionals, almost never suffer from
> any of the problems mentioned. That said, if there is a mission critical
> application that requires high security on a 24/7 basis, it makes sense to
> spend the extra money for software, hardware, and administration to set up
> and run a full SQL-Server application.
> --
> Arvin Meyer, MCP, MVPhttp://www.datastrat.comhttp://www.mvps.org/accesshttp://www.accessmvp.com
>
> "a a r o n . k e m p f @ g m a i l . c o m" wrote in
> messagenews:07211240-7db6-4f8b-aff5-c2f898880105@t39g2000prh.googlegroups..com...
> In Microsoft's own words....
> The following comes from Microsoft article Q300216.
>
> ---------------------------------------------------------------------------­---------------------------------------------------------------------------­-----
> "Microsoft Jet is a file-sharing database system. A file-sharing
> database is one in which all the processing of the file
> takes place at the client. When a file-sharing database, such as
> Microsoft Jet, is used in a multiuser environment,
> multiple client processes are using file read, write, and locking
> operations on the same shared file across a network. If,
> for any reason, a process cannot be completed, the file can be left in
> an incomplete or a corrupted state. Two
> examples of when a process may not be completed is when a client is
> terminated unexpectedly or when a network
> connection to a server is dropped.
>
> Microsoft Jet is not intended to be used with high-stress, high-
> concurrency, 24x7 server applications, such as Web,
> commerce, transactional, and messaging servers. For these type of
> applications, the best solution is to switch to a true
> client/server-based database system such as Microsoft Data Engine
> (MSDE) or Microsoft SQL Server. When you use
> Microsoft Jet in high-stress applications such as Microsoft Internet
> Information Server (IIS), customers have reported
> database corruption, stability issues such as IIS crashing or locking
> up, and also a sudden and persistent failure of the
> driver to connect to a valid database that requires re-starting the
> IIS service."
> ---------------------------------------------------------------------------­---------------------------------------------------------------------------­-----
>
> On Dec 30, 2:18 pm, "Bob Vance" wrote:
>
>
>
> > When I create my Invoice I have 2 choices an Invoice number or Not and
> > that
> > works just great, BUT if I open my Invoice again and add a charge when I
> > close my form it changes my Invoice Number from say 122 to 123, If my
> > invoice is Zero and add a charge to my Invoice its not a problem, this is
> > part of my code that must be wrong.........Thanks Bob
>
> > If fraSelectInvoiceNoType = 1 Then
> > recInvoice.Fields("InvoiceNo") = NextInvoiceNo
> > ElseIf fraSelectInvoiceNoType = 2 Then
> > recInvoice.Fields("InvoiceNo") = 0
> > End If
>
> > --
> > Thanks in advance for any help with this......Bob
> > MS Access 2007 accdb
> > Windows XP Home Edition Ver 5.1 Service Pack 3- Hide quoted text -
>
> - Show quoted text -

 >> Stay informed about: Incrementing Invoice Number 
Back to top
Login to vote
Arvin Meyer [MVP]

External


Since: Oct 02, 2008
Posts: 266



(Msg. 17) Posted: Thu Jan 01, 2009 7:35 pm
Post subject: Re: Incrementing Invoice Number [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

OK, now that you're done talking to yourself <lol> let's solve your problem.
First, you may be able to avoid getting a new number depending upon your
code and where it's placed. That may solve the other problem as well. So
give me some more information. What triggers your code? And what does the
sub NextInvoiceNo look like?
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com


"Bob Vance" wrote in message

> Sorry Arvin , It is not giving me a Invoice Number when I select it too,
> thought I had fixed it but hadnt ....Regards Bob
>
> "Bob Vance" wrote in message
>
>> Thanks Arvin got it going just had to put that code in again as there was
>> 2 places it was sitting....Regards Bob
>>
>> "Bob Vance" wrote in message
>>
>>> Oops it is not changing the invoice number when I open the form and
>>> close it But If I create a new Invoice with the option to give it a
>>> number it will only give it a zero..Regards Bob
>>> "Bob Vance" wrote in message
>>>
>>>> BRILLIANT Arvin, Thank you very much....Regards Bob Smile
>>>>
>>>> "Arvin Meyer [MVP]" wrote in message
>>>>
>>>>> Add another condition:
>>>>>
>>>>> If Me.NewRecord = True Then
>>>>> If fraSelectInvoiceNoType = 1 Then
>>>>> recInvoice.Fields("InvoiceNo") = NextInvoiceNo
>>>>> ElseIf fraSelectInvoiceNoType = 2 Then
>>>>> recInvoice.Fields("InvoiceNo") = 0
>>>>> End If
>>>>> End If
>>>>> --
>>>>> Arvin Meyer, MCP, MVP
>>>>> http://www.datastrat.com
>>>>> http://www.mvps.org/access
>>>>> http://www.accessmvp.com
>>>>>
>>>>> "Bob Vance" wrote in message
>>>>>
>>>>>> When I create my Invoice I have 2 choices an Invoice number or Not
>>>>>> and that works just great, BUT if I open my Invoice again and add a
>>>>>> charge when I close my form it changes my Invoice Number from say 122
>>>>>> to 123, If my invoice is Zero and add a charge to my Invoice its not
>>>>>> a problem, this is part of my code that must be wrong.........Thanks
>>>>>> Bob
>>>>>>
>>>>>> If fraSelectInvoiceNoType = 1 Then
>>>>>> recInvoice.Fields("InvoiceNo") = NextInvoiceNo
>>>>>> ElseIf fraSelectInvoiceNoType = 2 Then
>>>>>> recInvoice.Fields("InvoiceNo") = 0
>>>>>> End If
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Thanks in advance for any help with this......Bob
>>>>>> MS Access 2007 accdb
>>>>>> Windows XP Home Edition Ver 5.1 Service Pack 3
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>

 >> Stay informed about: Incrementing Invoice Number 
Back to top
Login to vote
Arvin Meyer [MVP]

External


Since: Oct 02, 2008
Posts: 266



(Msg. 18) Posted: Thu Jan 01, 2009 7:57 pm
Post subject: Re: Incrementing Invoice Number [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

"a a r o n . k e m p f @ g m a i l . c o m" wrote in
message

> a) Jet doesn't have real locking
> b) Jet doesn't have a real database log
> c) Jet doesn't have real transactions.

> so now _WHAT_ are you talking about?

Once again, you're full of it. The only logging Jet has is one that's
created by the developer. Since most databases run faster without logging,
even SQL-Server developers won't often use logging in non mission critical
applications. Jet does have both locking and transaction capabilities. I've
used Transactions since version 2.0. That's almost 15 years ago.

> You're right-- databases that are built by _PROFESSIONALS_ are
> built in SQL Server, that's why they don't have these problems.

You have no idea what a professional is. They laugh you out of the
SQL-Server newsgroups, the same as we do here.

> You're not some sort of 'database architect' just because you run
> the database splitting wizard in Jet.

Nor are you because you have a big mouth!

> Learn how to use the worlds most popular database before you
> try to boss me around, script kiddie!

Well, son, I happen to have more experience than you have years. And much
more skill than you have mouth.

> -Aaron
> MCITP: SQL 2005 DBA

BTW, it's interesting how no one seems to be able to verify your
certification claims. When did you get certified?
--
Arvin Meyer, MCP, MVP
http://www.datastrat.com
http://www.mvps.org/access
http://www.accessmvp.com
 >> Stay informed about: Incrementing Invoice Number 
Back to top
Login to vote
Bob Vance

External


Since: Mar 25, 2008
Posts: 180



(Msg. 19) Posted: Thu Jan 01, 2009 8:25 pm
Post subject: Re: Incrementing Invoice Number [Login to view extended thread Info.]
Archived from groups: per prev. post (more info?)

Thanks Arvin found the problem it was on the close control of the form it
used subsetInvoiceValues so I copied the code changed its name and took out
the Incriminate Invoice number changed its name to
subsetInvoiceValuesNoNumber and changed my Close control to that BINGO Smile
Thanks Bob

"Arvin Meyer [MVP]" wrote in message

> OK, now that you're done talking to yourself <lol> let's solve your
> problem. First, you may be able to avoid getting a new number depending
> upon your code and where it's placed. That may solve the other problem as
> well. So give me some more information. What triggers your code? And what
> does the sub NextInvoiceNo look like?
> --
> Arvin Meyer, MCP, MVP
> http://www.datastrat.com
> http://www.mvps.org/access
> http://www.accessmvp.com
>
>
> "Bob Vance" wrote in message
>
>> Sorry Arvin , It is not giving me a Invoice Number when I select it too,
>> thought I had fixed it but hadnt ....Regards Bob
>>
>> "Bob Vance" wrote in message
>>
>>> Thanks Arvin got it going just had to put that code in again as there
>>> was 2 places it was sitting....Regards Bob
>>>
>>> "Bob Vance" wrote in message
>>>
>>>> Oops it is not changing the invoice number when I open the form and
>>>> close it But If I create a new Invoice with the option to give it a
>>>> number it will only give it a zero..Regards Bob
>>>> "Bob Vance" wrote in message
>>>>
>>>>> BRILLIANT Arvin, Thank you very much....Regards Bob Smile
>>>>>
>>>>> "Arvin Meyer [MVP]" wrote in message
>>>>>
>>>>>> Add another condition:
>>>>>>
>>>>>> If Me.NewRecord = True Then
>>>>>> If fraSelectInvoiceNoType = 1 Then
>>>>>> recInvoice.Fields("InvoiceNo") = NextInvoiceNo
>>>>>> ElseIf fraSelectInvoiceNoType = 2 Then
>>>>>> recInvoice.Fields("InvoiceNo") = 0
>>>>>> End If
>>>>>> End If
>>>>>> --
>>>>>> Arvin Meyer, MCP, MVP
>>>>>> http://www.datastrat.com
>>>>>> http://www.mvps.org/access
>>>>>> http://www.accessmvp.com
>>>>>>
>>>>>> "Bob Vance" wrote in message
>>>>>>
>>>>>>> When I create my Invoice I have 2 choices an Invoice number or Not
>>>>>>> and that works just great, BUT if I open my Invoice again and add a
>>>>>>> charge when I close my form it changes my Invoice Number from say
>>>>>>> 122 to 123, If my invoice is Zero and add a charge to my Invoice its
>>>>>>> not a problem, this is part of my code that must be
>>>>>>> wrong.........Thanks Bob
>>>>>>>
>>>>>>> If fraSelectInvoiceNoType = 1 Then
>>>>>>> recInvoice.Fields("InvoiceNo") = NextInvoiceNo
>>>>>>> ElseIf fraSelectInvoiceNoType = 2 Then
>>>>>>> recInvoice.Fields("InvoiceNo") = 0
>>>>>>> End If
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Thanks in advance for any help with this......Bob
>>>>>>> MS Access 2007 accdb
>>>>>>> Windows XP Home Edition Ver 5.1 Service Pack 3
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>
>>>>>
>>>>
>>>>
>>>
>>>
>>
>>
>
>
 >> Stay informed about: Incrementing Invoice Number 
Back to top
Login to vote
Display posts from previous:   
Related Topics:
Incrementing number field in access - HI I am trying to create a number field that will create a unique incremented number each time a record is added to the database via a form. but I want that number to be in sequence and start from my specified number. I have tried the help in access and....

OrderNumber, Invoice Number, Credit Number - I am currently building ordering database for my business. I am currenlty use 1, 2, 3 ect for OrderNumbers Invoice Number and Credit Numbers To genetate the number i am using the following code on the Deafual setting of the field on the form ..

How to generate auto increment invoice number - Is it possible to generate auto increment invoice number where we already have existing records. If it is possible, how? Also, this database will be hosted on a website and accessed by 2 or more users - at times simultaneously. Please explain..

NWind Edit Invoice layout "Print Invoice" - How do I access the invoice form that show up when I click the "Print Invoice" button?

AutoNum not incrementing - This was working. Access 2000 on Windows 2000. I have 5 tables linked. One of my tables has an AutoNum as primary key. When I go into my form to ADD a new record, it used to go to a new record and add the record, giving it a new AutoNum number. ..
   Database Help (Home) -> MS Access All times are: Pacific Time (US & Canada)
Goto page Previous  1, 2
Page 2 of 2

 
You can post new topics in this forum
You can reply to topics in this forum
You can edit your posts in this forum
You can delete your posts in this forum
You can vote in polls in this forum



[ Contact us | Terms of Service/Privacy Policy ]