SV650.org - SV650 & Gladius 650 Forum



Idle Banter For non SV and non bike related chat (and the odd bit of humour - but if any post isn't suitable it'll get deleted real quick).
There's also a "U" rating so please respect this. Newbies can also say "hello" here too.

Reply
 
Thread Tools
Old 02-09-16, 10:05 AM   #1
BoltonSte
Member
Mega Poster
 
Join Date: Aug 2003
Location: Back in Bolton
Posts: 1,008
Default Visual Basic Q

Any VB guru's fancy lending a hand?


Unfortunately at work we don't have any databases to record testing of the batches we make, instead it's all done with Excel Workbooks...yes I know


Anywho;


One department does the testing and the worksheet captures various information such as batch number, weights etc... this is then saved, the file name is the batch number.


Finance then use this information to record % yields for the process, a continuous spread sheet with each batch sequentially listed in a column, currently involves opening the previous spread sheet and copying data across.


I can think of a couple of options:
1 - Use VB in the finance workbook, to cross ref the batch numbers with the file names and pull the information back. Although I suspect that this is going to cause issues with the number files needing checking and opening.
2 - Add an 'upload' button to the 1st department, which, once the sheet is complete can be clicked to transfer the information to the appropriate cells in the finance sheet. I'm thinking something like a lookup, matching batch numbers and then put A1 into G, B1 into H etc...


I'm not after anyone to do it for me, but some pointers and terminology would be useful as my VB experience is limited.


Ta


Ste
__________________
Had an SV or three.
Street triple R - gone but not forgotten.
Now trying the lunacy that is KTM with a Superduke GT. for the pillion capability of course.
BoltonSte is offline   Reply With Quote
Old 02-09-16, 10:14 AM   #2
atassiedevil
Guest
 
Posts: n/a
Default Re: Visual Basic Q

Considered doing this in a database instead? They are tailor made for stuff like this.

MS Access would be a good start, if its a good fit, export everything to a database, and an access database can be made to talk directly to SQL. So can Excel as it happens, if you do things right.

Your unique record would be the "batch number" as i expect these are unique, and not repeated.
Easy to backup/restore too if you have problems.

C.
  Reply With Quote
Old 02-09-16, 02:49 PM   #3
russell664
Member
 
Join Date: Apr 2016
Posts: 127
Default Re: Visual Basic Q

MS access database would work far better.

Use things like relational tables/keys, to cross reference the batch numbers. You can make user logins, and track changes if setup correctly.
Doing it this way you will be looking at a lot of VBA code - but once you have the fundamentals - it's fairly easy.

Use could well use some macros to copy data in an Excel workbook, but in my honest opinion, you would be best to move away from that while you can.
russell664 is offline   Reply With Quote
Old 02-09-16, 05:53 PM   #4
andrewsmith
Member
Mega Poster
 
andrewsmith's Avatar
 
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
Default Re: Visual Basic Q

Ms access is a good shout, but could cost a lot for a mass deployment and the machines would need to be windows 7 onwards

A database would work a lot better, you could develop a bench test in excel and see how it works in the real world. I did do it many years ago in excel to build a primitive pos system

Sent from my E2303 using Tapatalk
__________________
RIP Reeder 20/07/1988 - 21/03/2012. Always missed squire!!!

Every year we meet old friends, gain some new ones, lose old ones and you always remember them all.
“Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi
andrewsmith is offline   Reply With Quote
Old 03-09-16, 12:53 PM   #5
BoltonSte
Member
Mega Poster
 
Join Date: Aug 2003
Location: Back in Bolton
Posts: 1,008
Default Re: Visual Basic Q

Switching to Access or anything is about as likely as getting water to flow up-hill. Half the users struggle with excel as it is.


We do have a database package for tracking manufacturing, but it doesn't have any quality control capability unless we upgrade to the latest version, see point above.


Andrew, how would you go about developing a bench test in excel? This may be an option.


Ooooo, I apparently have Access 2013 on my laptop, which means the rest of us should also have it, anyone willing to give me a quick pointer on how to start building databases?
__________________
Had an SV or three.
Street triple R - gone but not forgotten.
Now trying the lunacy that is KTM with a Superduke GT. for the pillion capability of course.
BoltonSte is offline   Reply With Quote
Old 03-09-16, 02:06 PM   #6
andrewsmith
Member
Mega Poster
 
andrewsmith's Avatar
 
Join Date: Apr 2010
Location: Newcastle upon Tyne, Just south of salad dodging country
Posts: 7,750
Default Re: Visual Basic Q

When I did it, it was done similar to access it was excel ME I think.

I did as one for inbound, stock and sales using a URN (batch codes are ideal) and used macros to update the pages and logic cells

Quick Google brought this up http://m.wikihow.com/Create-a-Retail...tem-with-Excel

Google how to make pos system in excel, and there's a few good ones up

Sent from my E2303 using Tapatalk
__________________
RIP Reeder 20/07/1988 - 21/03/2012. Always missed squire!!!

Every year we meet old friends, gain some new ones, lose old ones and you always remember them all.
“Live as if you were to die tomorrow. Learn as if you were to live forever.” Mahatma Gandhi
andrewsmith is offline   Reply With Quote
Old 03-09-16, 02:28 PM   #7
BoltonSte
Member
Mega Poster
 
Join Date: Aug 2003
Location: Back in Bolton
Posts: 1,008
Default Re: Visual Basic Q

Ta


That looks quite straight forward, I can probably use that for my raw materials as well. Eyes well and truly opened, it's going to be a few evenings playing I think.
__________________
Had an SV or three.
Street triple R - gone but not forgotten.
Now trying the lunacy that is KTM with a Superduke GT. for the pillion capability of course.
BoltonSte is offline   Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Audio / Visual Thread......... hindle8907 Idle Banter 174 18-10-12 09:14 PM
Excel Visual Basic Code... Rai86 Idle Banter 7 18-03-11 04:17 PM
Visual Basic help req'd Supervox Idle Banter 6 22-06-07 10:56 AM
anyone knows a good book about Visual basic? Dave The Rave Idle Banter 5 01-05-07 05:20 PM
Visual Studio 2005 Settings MavUK Idle Banter 6 24-10-06 02:54 PM


All times are GMT. The time now is 02:31 AM.


Powered by vBulletin® - Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.