Hi Guys,
I'm very new to Visual Basic so you'll have to bare with me. I've got some great big books that I've brought but I'm not even sure where to start. I did a bit of visual basic programming back when I was in college however I need my mind to be refreshed a little, I can't remember a thing!
Anyway... here's the problem:
I run a business and I'm making somewhat of a sales system.
What I'm Trying To Do
I need a table that is going to group the revenue, sales, marketing costs, expenses and so on for each week and plot them on a graph. These amounts are dragged into the table by queries that search other tables holding the relevent info.
What's currently happening (aka the problem)
At the moment, I'm able to grab the data in for each week. The problem is, if there is no data for a particular week (for example, I have data for week 36 and 38, but nothing for week 37), then week 37 won't show up on my graph.
What I Want To Do (this is where I need you help)
I need a way to do the following and I believe it comes through visual basic (but im not sure):
There is one more problem I have. Week Numbers. When next year comes, this idea of using week numbers is going to create a whole lot of problems, I may have duplicate week numbers, or January 2009 may show up as the start of the graph, when it should show up at the end. How will I get around these issue?
You help will be very very very very much appreciated. I hope I don't trouble you minds too much.
I'm very new to Visual Basic so you'll have to bare with me. I've got some great big books that I've brought but I'm not even sure where to start. I did a bit of visual basic programming back when I was in college however I need my mind to be refreshed a little, I can't remember a thing!
Anyway... here's the problem:
I run a business and I'm making somewhat of a sales system.
What I'm Trying To Do
I need a table that is going to group the revenue, sales, marketing costs, expenses and so on for each week and plot them on a graph. These amounts are dragged into the table by queries that search other tables holding the relevent info.
What's currently happening (aka the problem)
At the moment, I'm able to grab the data in for each week. The problem is, if there is no data for a particular week (for example, I have data for week 36 and 38, but nothing for week 37), then week 37 won't show up on my graph.
What I Want To Do (this is where I need you help)
I need a way to do the following and I believe it comes through visual basic (but im not sure):
- Look in the table (the table that will have week 37 missing) and return the 1st and last value for the week number.
- Delete the records in the table
- Get something like visual basic to automatically add in record with the week numbers for all the weeks between the largest and lowest value
- Get an update query to fill in all the other values.
There is one more problem I have. Week Numbers. When next year comes, this idea of using week numbers is going to create a whole lot of problems, I may have duplicate week numbers, or January 2009 may show up as the start of the graph, when it should show up at the end. How will I get around these issue?
You help will be very very very very much appreciated. I hope I don't trouble you minds too much.
Last edited: