473,320 Members | 1,920 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

combo / textfield problem

1
Hi all,

First let m say that i did search and found lots of answers to my problem and have solved it partial.

I have a main form that include subform.

I needed to get the data from combo box to be shown in textfield in a (continuous) subform.

Found the solution:
IDCode.column(mynumber)

Now this works great, but i have realize that coz this textfield is acutally a meant for Price for my products, the calculation is not working properly when trying to calculate quantity and price.

Example:
In subform i have
Code
Name ( combbox)
Quantity
Unitprice
Value

and then i have in footer of subform:
SubTotal:
VAT:
Total:

Can any1 explain me how should my code look like so that i will get price from combo box to textfield and that my calculation will work properly??

Also...
How could i add 1 more combobox in subform that will have categories and if i decide to pick from category1 the 2nd combo box that is also in subform will show items only from that category??

I manage to do it outside the subform, but it's not wroking inside subform.
It always shows items from category1 .

Here's my code:
SELECT DISTINCT PRODUCTS.ID, PRODUCTS.Name, FROM PRODUCTS WHERE (((PRODUCTS.IDCAT)=[SubFormOrder]!IDCAT)) ORDER BY PRODUCTS .Name;


If i add [Forms]! infront of [SubFormOrder] then the subform will not work.
Thanks,
Oct 4 '06 #1
1 1642
PEB
1,418 Expert 1GB
Hi to reference a subform You need a structure like:

=Forms![Elements]![Element_info Subform].[Form]![ACTIV_LINE_N]

Where Elements is the main form

Element_info Subform - the sub form control in your main form

AND
ACTIV_LINE_N - a field in your Subform!

:)
Oct 8 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: T.E. | last post by:
Hi all, I'm a newbie in php. I encounter a problem with php form that has only one textfield. If I click on the submit button, the form works fine. However, when I press 'enter', the form...
2
by: C. Armour | last post by:
Help me, I'm suffering! Situation: I have a load() function which loads a bunch of TextFields with values. There are TextListeners registered for each of these TextFields. Thus, changing the...
1
by: Veverita | last post by:
Hi there I'm hoping that someone can help me with a question I have about javascript syntax. I got an html page that uploads an image and some text field to a database. What I'd like to do...
1
by: martim07 | last post by:
How do I have a textbox on a subform automatically fill in with a value after I select an item from a combo box on a form (e.g., select a product name in a combo box and have the subform populate...
7
by: Hans Merkl | last post by:
Hi, Can anybody recommend a combo box control (textfield + dropdown list) for ASP.NET? I have looked at some products and it seems they all have some problems. I haven't yet found a combo box...
9
by: learning | last post by:
Hi! Here's my situation: I have one textfield with one 'submit' button in PAGE1.PHP. When I click on the 'submit' button I am sent to PAGE2.PHP where I have a "switch" routine that checks...
1
by: Jason Northampton | last post by:
Hello This is the first time I've used a discusion forum and up until now I have managed to use and or modify VB code from the various sites on the web, until now! This is a simple problem and I...
5
by: vidyagopal | last post by:
I have a jsp page these are three formfields itemsr : --it is a combobox itemtype : --textfield itemname : --textfield to itemsr i have to populate from itemtable(database mysql) and...
2
by: Rex | last post by:
I have a main form and a subform. The main form has a combo box control and the subform has a textfield. What I want to do is when the main form loads it should check the value of the combo box...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.