Automating Field Values

T

Thernan102

I have a Brands table which contains three fields which
are BrandID, Brand, MarkUp. I also have a products table
which contains the fields Sku, Description, Cost, Price,
BrandID. In my form, after I enter the BrandID I want a
markup field to synchronize with the markup of the Table:
Brands so that the price field is equal to the cost field
times the markup field. How can I do this.
 
R

Rebecca Riordan

Couple of ways, but the most straight-forward is to use a DLookup and
calculate the value in the OnChange or OnExit of the BrandID control. If
performance becomes a problem, you can use a query, but that will require a
little fiddling.

HTH

--
Rebecca Riordan, MVP

Designing Relational Database Systems
Microsoft SQL Server 2000 Programming Step by Step
Microsoft ADO.NET Step by Step

http://www.microsoft.com/mspress

Blessed are they who can laugh at themselves,
for they shall never cease to be amused...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top