Computer Learning Zone CLZ Access Excel Word Windows

Don't know if it's good or bad that a Google search on "Big Bang Theory" lists the sitcom before the origin of the Universe

-Neil deGrasse Tyson
 
Home   Courses   TechHelp   Forums   Help   Contact   Merch   Join   Order   Logon  
 
Back to Access SQL Seminar Part 2    Comments List
Upload Images   @Reply   Bookmark    Link   Email   Next Unseen 
Markup
Lone Vistoft 

13 years ago
Hi Richard, You did not understand my previous question, so I will here try to clarify it a bit more. Here is my program:

Private Sub Kommandoknap9_Click()    
    LogIt "Price Updated", "Category" & CategoryCombo.Column(1)
    If IsNull(CategoryCombo) Or IsNull(Markup) Then Exit Sub    
    Dim M
    M = Format(Markup, "0,00")      
    DoCmd.SetWarnings False
    DoCmd.RunSQL "UPDATE ProductT INNER JOIN VendorProductT ON " & _
        "ProductT.ProductCode = VendorProductT.PRID " & _
        "SET ProductT.UnitPrice = [PPRICE]*(1+" & M & "), " & _
        "ProductT.LastUpdated = Now() " & _
        "WHERE ProductT.Category=" & CategoryCombo
    DoCmd.SetWarnings True        
    RefreshProductList    
End Sub

When VendorPriceUpdateF, Markup stands at 45%, nothing happens. When VendorPriceUpdateF, Markup stands at 50% is the Unit Price 100% bigger than the New Price. When VendorPriceUpdateF, Markup stands at 51% to 99 % is the Unit Price 100% bigger than the New Price. When VendorPriceUpdateF, Markup stands at 150% is the Unit Price 300% or three times larger than the New Price. Kind regards Lone



Reply from Richard Rost:

Make sure you DIM M as something. In this case, you probably want a DOUBLE. Don't bother formatting it, you're not displaying it anywhere.

Where is PPRICE coming from? If that's in the tutorial, I apologize, it's been two years since I recorded that lesson. Can't remember everything. :)

This thread is now CLOSED. If you wish to comment, start a NEW discussion in Access SQL Seminar Part 2.
 

Next Unseen

 
New Feature: Comment Live View
 
 

The following is a paid advertisement
Computer Learning Zone is not responsible for any content shown or offers made by these ads.
 

Learn
 
Access - index
Excel - index
Word - index
Windows - index
PowerPoint - index
Photoshop - index
Visual Basic - index
ASP - index
Seminars
More...
Customers
 
Login
My Account
My Courses
Lost Password
Memberships
Student Databases
Change Email
Info
 
Latest News
New Releases
User Forums
Topic Glossary
Tips & Tricks
Search The Site
Code Vault
Collapse Menus
Help
 
Customer Support
Web Site Tour
FAQs
TechHelp
Consulting Services
About
 
Background
Testimonials
Jobs
Affiliate Program
Richard Rost
Free Lessons
Mailing List
PCResale.NET
Order
 
Video Tutorials
Handbooks
Memberships
Learning Connection
Idiot's Guide to Excel
Volume Discounts
Payment Info
Shipping
Terms of Sale
Contact
 
Contact Info
Support Policy
Mailing Address
Phone Number
Fax Number
Course Survey
Email Richard
[email protected]
Blog RSS Feed    YouTube Channel

LinkedIn
Copyright 2026 by Computer Learning Zone, Amicron, and Richard Rost. All Rights Reserved. Current Time: 5/6/2026 12:01:56 PM. PLT: 0s