473,513 Members | 6,210 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Using custom controls in a continous form

3 New Member
I have an application that i am writing that uses a simple activex control that i built. the application is for inventory tracking and projections of future sales. i am using a continuous form to display all of the products at each location, and i wish to use my control to display the percentage of product in each tank. the problem is that when i pass the percentage value to my control, it displays the last read value from inventory in all of the controls regardless of what their value might be. so my question is, is there a way for me to pass the value to the control for each individual record and hold it while moving on to the next? the inventory field is bound, but the problem as i see it is that the control it self has the same name throughout the form, so it is just updating it to the most recent value. if anyone sees a way around this i would be grateful

thanks
Oct 12 '09 #1
4 1607
jmessenger
3 New Member
An amendment here, actually it is reading only the first record, and ignoring the rest
Oct 12 '09 #2
NeoPa
32,557 Recognized Expert Moderator MVP
A common problem. See Why Values in Unbound Form Controls do not Persist for the explanation.

You could try updating the RecordSource to include the extra value. Your ActiveX control could then be bound to this new value, thus reflecting the result of each record rather than reflecting the latest assigned as you'd expect from an unbound control.
Oct 12 '09 #3
jmessenger
3 New Member
Pardon my ignorance, but the inventory field is a bound field, and as you would expect is different for each commodity, and so i guess that i am going to have to figure out how to dynamically add these controls to the form each time it is updated so that i can get the values to reflect the associated record. if you could point me in the right direction there, i would be grateful. if not it looks like more googling for me. thanks
Oct 12 '09 #4
NeoPa
32,557 Recognized Expert Moderator MVP
Is your ActiveX control bound directly to the Inventory field? Or is it trying to display a calculation based upon this? If the latter then it is not a bound field. To make it bound you need to do the calculation in the query, and bind the control to this value.
Oct 12 '09 #5

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

Similar topics

1
2320
by: adolph | last post by:
I would like to add a check box to the detail area of a continous form. So that I can check on specific records, then after I've marked all the records I watn to delte, click a button to loop thru...
19
4066
by: James Fortune | last post by:
I have a lot of respect for David Fenton and Allen Browne, but I don't understand why people who know how to write code to completely replace a front end do not write something that will automate...
4
2792
by: Kevin Phifer | last post by:
Ok, before anyone freaks out, I have a solution I need to create that gathers content from maybe different places. Each one can return a <form> in the html, so its the classic can't have more than...
5
3143
by: Marcel Gelijk | last post by:
Hi, I am trying to create a User Control that is located in a seperate class library. The User Control contains a textbox and a button. The page generates an exception when it tries to access...
6
2651
by: Suzanne | last post by:
Hi all, I really hope someone out there can help me as I've been tearing my hair out on this one for a good while and I'm getting really frustrated now! My problem is this - my custom...
0
1402
by: ReidarT | last post by:
I have started to develop in vb.net. Earlier development was in MS-Access. I need a lot of continous forms to present data. The customer add and edits data in the continous form. Is use of...
15
6477
by: rizwanahmed24 | last post by:
Hello i have made a custom control. i have placed a panel on it. I want this panel to behave just like the normal panel. The problem i was having is that the panel on my custom control doesnt...
14
24986
by: keri | last post by:
Hi, Simple version of the question..... How do I use the where clause of the open form command to show an account with a matching ID to be displayed when the form is opened? Eg. I select a...
5
2112
by: AccessHunter | last post by:
Hi, I have a continous form that displays Name and Address of Suppliers. In the form there is a combo box for 'Active Address' and 10 other text boxes. All the fields coem from one table,...
0
7153
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7373
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7519
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5677
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5079
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3218
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1585
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
796
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.