Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Access and Access VBA > Access VBA
|
Access VBA Discuss using VBA for Access programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Access VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 13th, 2005, 12:33 PM
Registered User
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default What Syntax to use in Coding order entry system?

I am a beginner in VBA. I am developing an Order entry system for my company using the Access Order Entry Template. The Problem is I have certain groups of customers who can only buy certain products at certain prices. I have created a pricing structure table and I have Assigned each customer a certian product price list.

I want to create a VBA that will automatically look at the customers Assigned product price list and then find the proper products and corrosponding pricing thats available for that customer.

I am looking for a fairly detailed Syntax for this event.
Would you recommend a before update Event?
Would be a IIf Then or If Else?

I really have no Idea.

 
Old October 14th, 2005, 01:26 PM
Friend of Wrox
 
Join Date: Mar 2004
Posts: 3,069
Thanks: 0
Thanked 10 Times in 10 Posts
Default

It sounds like you want to create Customer Groups, and then make each customer a member of a group, and then find a product list and pricing based on group membership.

This is not a coding issue, but a table design and normalization issue.

You would have to create:

tblGroup
GroupID - PK
Group Description

tblCustomer
PK
LName
FName
GroupID - FK

tblProduct
ProductID
Product Description
Price

tblProd_Group
ID
ProductID - FK
GroupID - FK
GroupPrice

Once you create something like this, the code is a little easier.

Does this look like it will work for you? Questions, Comments?

HTH to get started. Code later.

mmcdonal
 
Old October 20th, 2005, 08:58 AM
Registered User
 
Join Date: Oct 2005
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Thank you! I will try to structure the tables better! I will keep you updated on my progress.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Help: Multi User Order Entry Screen csjenkin1 VB Databases Basics 0 November 30th, 2007 04:29 PM
syntax error?<%@ Import Namespace="System.Data" %> fjm9 ASP.NET 1.0 and 1.1 Basics 2 January 16th, 2007 11:51 AM
Syntax error? <%@ Import Namespace="System.Data" % fjm9 C# 1 January 16th, 2007 09:17 AM
System to order rows a table DB anteojo Classic ASP Databases 1 December 2nd, 2004 02:34 AM
document node order vs sort node order. ladyslipper98201 XSLT 2 June 5th, 2003 11:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.