计算克拉价格。 [英] Calculating karat prices.

查看:118
本文介绍了计算克拉价格。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编制一个估算表单,当我点击一个组合框并选择一个黄金克拉时,金属的价格被输入一个单独的文本框中,它将用于计算。我仍然希望在组合框中显示原始的karat值以供参考。我有一个链接到Excel的表,其中包含可以每天更新的克拉和价格,但我不能使它与查找一起工作。

我被困了。

I am working on an estimate form where, when I click on a combo box and pick a gold karat, the price of the metal is entered into a separate textbox where it will be used in a calculation. I still want the original karat value to show in the combo box for reference purposes. I have a table linked to Excel which contains the karats and the prices that can be updated daily, but I can''t make it work with a lookup.
I''m stuck.

推荐答案

你们的要求对我来说并不是很清楚。

excel中有克拉和一张克拉和价格(每克拉?)的表格,可以使组合框从链接表中查找可用的克拉和价格,并提供将它们相乘以显示价格的可能性。

我怀疑价格是远程的。因此你需要选择一个excel行来获得正确的价格。

为此你可以使用带有WHERE部分的Dlookup()通过使用BETWEEN子句输入条件来找到所需的范围。


你能详细说明所需的价值和计算和/或出错的地方吗?


Nic; o)
You''re requirments aren''t really clear to me.
Having karats and a table with karats and prices (per karat?) in excel will make a combobox possible to lookup the available karats and prices from the linked table and offer the possibility to multiply them to show the price.
I suspect however that the prices are "ranged" and thus you need to select one of the excel rows to get the correct price.
For this you can use a Dlookup() with a WHERE part finding the needed range by entering a condition using the BETWEEN clause.

Can you elaborate on the needed value(s) and the calculation and/or where it goes wrong?

Nic;o)



你的要求对我来说并不是很清楚。

有克拉和桌子在excel中使用克拉和价格(每克拉?)可以使组合框可以从链接表中查找可用的克拉和价格,并提供将它们相乘以显示价格的可能性。

我怀疑然而价格是范围的。因此你需要选择一个excel行来获得正确的价格。

为此你可以使用带有WHERE部分的Dlookup()通过使用BETWEEN子句输入条件来找到所需的范围。


你能详细说明所需的价值和计算和/或出错的地方吗?


Nic; o)
You''re requirments aren''t really clear to me.
Having karats and a table with karats and prices (per karat?) in excel will make a combobox possible to lookup the available karats and prices from the linked table and offer the possibility to multiply them to show the price.
I suspect however that the prices are "ranged" and thus you need to select one of the excel rows to get the correct price.
For this you can use a Dlookup() with a WHERE part finding the needed range by entering a condition using the BETWEEN clause.

Can you elaborate on the needed value(s) and the calculation and/or where it goes wrong?

Nic;o)



我也不清楚。

也许这个:


表:金属

字段:数字(键)

克拉(文字)

GramPrice(货币)


每个Karat of gold的特定价格基于纯金与合金的百分比。 (我有一个Excel工作表,根据世界黄金价格计算克拉价格,但如果它让我发疯,我们不需要使用链接。)


我想要用户输入克重并点击所需的克拉并获得特定克拉的值,然后计算出该品中黄金的价格。


表格:估计

Controls:TextBox; GramWeight(数量)

Combo或ListBox; Karat(从金属查询)

TextBox; GramPrice(来自金属)

TextBox; MetalEstimate(GramWeight x GramPrice)


这是令人沮丧的,因为我可以获得一个查找,显示我需要的两个字段,但只输入Key为Number。


具有讽刺意味的是,我正在设置数据库以简化员工的估算流程。这是一个正在进行的项目。

希望你能提前帮助和感谢。

Not clear to me, too.
Maybe this:

Table: Metal
Fields:Number(Key)
Karat(Text)
GramPrice(Currency)

Each Karat of gold has a specific price based on the percentage of pure gold versus alloy. (I have an Excel worksheet that calculates the karat price based on the world gold price but we don''t need to use the link if it makes me crazy.)

I want the user to enter a gram weight and click on the desired Karat and have the value of the specific karat which will then calculate the price of the gold in the piece.

Form: Estimate
Controls:TextBox; GramWeight(Number)
Combo or ListBox; Karat(Lookup from Metal)
TextBox; GramPrice(from metal)
TextBox; MetalEstimate (GramWeight x GramPrice)

It''s kind of frustrating since I can get a lookup that shows both fields that I need, but only enters the Key which is Number.

Ironically, I''m setting up the database to simplify the estimate process for my employees. It''s an ongoing project.
Hope you can help and thanks in advance.


当你有GramWeight和GramPrice时,那么TextBoxMetalEstimate应保留在矩形中:

= GramWeight * GramPrice

GramPrice应该填充来自Karat组合框,因为另一个Karat将意味着另一个GramPrice。

如何填写此字段并且形式为绑定到一个表(表单是否有一个控件来源为它的数据)?


Nic; o)
When you have GramWeight and GramPrice, then the TextBox "MetalEstimate" should hold in the rectangle:
=GramWeight * GramPrice
The GramPrice should be "filled" from the Karat combobox as another Karat will mean another GramPrice.
How do you fill this field and is the form "bound" to a table (does the form have a controlsource for it''s data) or not?

Nic;o)


这篇关于计算克拉价格。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆