473,725 Members | 2,070 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Real time updating charts in an access form

4 New Member
Hello,

I am in the middle of an access database projet but are struggerling with a couple of things. I dont expect anyone to solve the problem for me, but would really appreciate a pointer in the right direction as I am starting to struggle in terms of direction on this.

Problem no1:

I am currently trying to build an interactive calculator in a access form.

Im making ok progress but have a couple of things I cant work out how to overcome, and its starting to do my head in.

The intention is that the calculator will consist of a series of scroll bars that default to component aspects of current performance (in percent) and allow you to move the bars to populate a pie chart real time, as you move the scroll bars.

I am currently using combo boxes to generate the change - hence could do with some ideas on how I can utilise a more user freindly scroll bar approach that enables me to move through a dataset auto selecting as I go (rather than point and click as in a combo box). I hope thats clear.

Problem No2:

The other is to enable the chart to respond instantly to changes in the component performance scroll bars above it. I have been dabbling with the requery function. But if someone can give me a pointer, would be most appreciated.

Problem No3:

The final thing is how I can in a continous form change the background colour of a series of text boxs based on seperate start and end date field in each record in the form to create an interactive gant chart (provide a project management tool) manage total projects). I have had some success with this but it changes the background of the text box in all records rather than be specific to individual records.

As already stated i havent posted this as a wish list, but just to aid me in terms of the right direction to solve these probs. All help welcome.

Kev

email:
Mar 31 '07 #1
4 9521
Denburt
1,356 Recognized Expert Top Contributor
I am in the middle of an access database projet but are struggerling with a couple of things.
O.K. first this is a VB forum if you are designing an app in MS Access then it should be in the MS Access forum that said.

1. Try using the Microsoft Slider Control.

Expand|Select|Wrap|Line Numbers
  1. Sub UpdateSlider()
  2.     Dim rst As Recordset
  3.     Set rst = Me!subfrmTabinfo.Form.RecordsetClone
  4.     rst.MoveLast
  5.     rst.MoveFirst
  6.     On Error Resume Next
  7.     With Me
  8.         !Slider.Max = Me!subfrmTabinfo.Form.RecordsetClone.RecordCount
  9.         !Slider.Value = 1
  10.     End With
  11. End Sub
  12.  
2. Refresh, repaint?

3. Check out the following thread: Change bg colour of different records in continuous forms


Good Luck
Mar 31 '07 #2
KPOJonesECC
4 New Member
Thanks for the advice, It helped the chart now updates on a refresh command button. Having a little difficulty making this work attached to the fields as an event procedure to do this without the command button, but i am sure this is a prob i can solve.

The prob i am having though is around the slider script you forwarded. What I have been playing with is a subform and attempting to move through this data auto selecting. Therby populating a field in the form that underlies the chart via a query (im using access 2000).

If you can help with with getting the slider bit to work be much appreciated.
Apr 1 '07 #3
Denburt
1,356 Recognized Expert Top Contributor
The prob i am having though is around the slider script you forwarded. What I have been playing with is a subform and attempting to move through this data auto selecting. Therby populating a field in the form that underlies the chart via a query (im using access 2000).
Sorry I reread my post and realized it was incomplete.
When your onload event occors for the form run the UpdateSlider Command that will initialize it.

I didn't see this in any of the event properties in the MS Access properties but if placed in the forms module you should be O.K.
Expand|Select|Wrap|Line Numbers
  1. Private Sub Slider_Scroll()
  2.  
  3.     With Me!subfrmTabinfo.Form
  4.         .RecordsetClone.Move (Me!Slider.Value - .CurrentRecord)
  5.         .Bookmark = .RecordsetClone.Bookmark
  6.     End With
  7. End Sub
Is the subform linked to the main form? If so then the approach would be just a little different.

Goodluck let us know how it goes.
Apr 1 '07 #4
KPOJonesECC
4 New Member
Thanks for this, it makes sense, I was begining to loose my mind. To many hours staring at the screen. I will try this tonight.

The answer to the question regarding whether the subforms are linked to the main form is yes. The purpose of this is I want them to defaulting to current performance. The subforms represent the component parts of overall performance in %. Is this likley to be a problem?

Either way i'll give this a go and will post an update on when I get it to work.

Kev
Apr 1 '07 #5

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

Similar topics

12
6561
by: Russ | last post by:
I'm interested in setting up a web page where live data can be displayed in real-time on the web page. For example: I would like to display a (nice looking) graph of some data value versus time and have the graph update every second without the user having to do anything like hit a refresh button. The data to plot is readily available from an application running on the server - I can expose it in whatever way is needed (currently easily...
2
414
by: Gargamil | last post by:
How can I display a chart with more than 6 columns of data? Are there third party applications? Can someone point me in the right direction here?? g
0
1009
by: deejayquai | last post by:
Hi(again) 2nd try with this (sorry!) My question is this- I would like to display different charts on a form that either randomly changes everytime the form is opened or depending on the day. ( a bit like MS Money if anyone has ever used it).
3
2095
by: NickJ | last post by:
Dear all, I've encountered an unusual problem having just recently upgraded an Access 97 database to Access 2000 format and was hoping somebody could point me in the direction of a solution. 1. The problem: Essentially, a couple of the reports which contain SeriesLine charts are NOT displaying the series-lines (i.e. the results) on the charts correctly in
1
2024
by: Gunnar | last post by:
I am finding some unusual behavior with techniques I am using to show/hide/update data without having to refresh the page. I'm quite sure it's developer ignorance on my part and would be grateful for any suggestions. My page has 10 tables with their visibility controlled by the user making a menu selection. For example, selecting menu_1 calls a function which displays table_1 by setting table_1's style display: block and hides tables...
10
3082
by: Martin Hughes | last post by:
Hi guys, I was wondering if anyone could give me some advice. I am looking to develop an ASP.NET application that will enable several workstations to access real time telemetry data received from a vehicle on a track. The data flow would be as follows: |-- Workstation 1
5
5203
by: Wayne | last post by:
Several of my Access 2003 databases are exhibiting the same problem under Windows Vista. Charts in forms are not showing any data. Reports are not affected. Charts in reports display as they should. The chart object in forms appears but contains no data. It appears to be a screen painting problem because if I open a report or another form on top of the form that is not showing the chart, when the second report or form is closed, the...
15
2626
by: (PeteCresswell) | last post by:
Some time within the next nine months, there's a pretty good chance I'll have the "opportunity" to port a bond trading system that I wrote - whose front end is currently MS Access - to .NET. Quotes bc I need this like I need another hole in the head. But in the words of one of my esteemed colleagues: "I don't sell programming; I sell happiness." And if this will make my clients happy, that's what floats my boat in the long run.
3
2008
by: David | last post by:
Hi Has anyone experienced any problems with embedded charts on forms when running windows vista? I'm running Access 2000 (old I know) and have noticed that embedded charts don't appear, unless you drag the form around or bring another form on top and then go back to view it underneath- then it appears- looks like some kind of paint problem. There's no problem with Excel or Word etc. Not sure if its Vista incompatible with MS Chart or...
0
8888
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9401
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9257
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8096
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6011
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4517
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3221
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 we have to send another system
2
2634
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.