Wrox Programmer Forums
|
VB Databases Basics Beginning-level VB coding questions specific to using VB with databases. Issues not specific to database use will be redirected to other forums.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the VB Databases Basics section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old April 5th, 2007, 04:19 AM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default immediate help needed

hi! I need a program in vb that does this as soon as possible, I'd be very grateful if anyone could tell me how to do it:

the customer gives a table containing the old values and new values in an excel sheet which will be connected to an access table.
then the program checks for multiple new values for the same old value and after the user has corrected the values,
shows a form that takes a server and MSSQL database name and after connecting to and opening it, if a value in
it's table(like vouchers_no) is equal with a value from the access table in the oldvalue field, it replaces it's
value with the value of the newfield value of the same record.
 
Old April 5th, 2007, 10:32 AM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

1) Commas aren’t periods.
2) Capitalizing the first letter of each sentence makes it so that others don’t need to decrypt your post.
3) The fact that you are posting here is sufficient notification that you need help—no need to use that as a subject line. A good subject for this would have been maybe, "Processing Excel Data." Or maybe, "Hard Homework Problem." Which brings us to
4) Very few people here will do your homework for you. We will be happy to help with technology issues, like "How do I read the values in Excell cells?" or "How can I take user input form a form, and use it to open a connection to a server?" (Or "to MS SQL?")


Liberty’s good though (from your username)—I’m all for it!
 
Old April 5th, 2007, 12:04 PM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I'm really sorry! My English is not very good and I was in a real hurry when I wrote that post. Plus this is my first posting on a board like this so I really didn't know what and how to post it.
And just FYI it's not my homework.

Thank for answering and pointing these out to me. I'll pay more attention next time.
 
Old April 5th, 2007, 04:40 PM
Friend of Wrox
 
Join Date: Nov 2004
Posts: 1,621
Thanks: 1
Thanked 3 Times in 3 Posts
Default

Well than, how is it that you come to this problem, if it is not homework? (You must admit that it looks a lot like a homework problem...)

Can you give a step-by-step to clarify what you need to do?

Recieve a table from the customer. (This table's information represents ? ? ?)
The table is contained in an Excel spreadsheet.
Access will be linked to this file's data.
(etc.etc.)

BTW: your second post is much better; thanks.
 
Old April 5th, 2007, 09:05 PM
Wrox Author
 
Join Date: Oct 2005
Posts: 4,104
Thanks: 1
Thanked 64 Times in 64 Posts
Send a message via AIM to dparsons
Default

I agree with Brian. I have no idea what it is that you are asking for. It seems that you will have a CSV file that needs to connect to a SQL Sever that connects to an access database??

I should also point out, noone here is going to write this program for you; give you advice on how you *could* create sure, there are plenty of people that can give you advice on that.

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from planoie's profile^^
^^Modified text taken from gbianchi profile^^
================================================== =========
Technical Editor for: Professional Search Engine Optimization with ASP.NET
http://www.wiley.com/WileyCDA/WileyT...470131470.html
================================================== =========
Why can't Programmers, program??
http://www.codinghorror.com/blog/archives/000781.html
================================================== =========
 
Old April 6th, 2007, 01:29 AM
Registered User
 
Join Date: Apr 2007
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

someone asked me to write it because he needed something like that and didn't have time to do it himself.

The customers have a table 'vouchers' in their accounting database. They want to to replace the current values of the fields 'voucher_no' with a set of new values. they have the old values and the new values to be assigned in an excel sheet. now I'm supposed to write something that will replace the current values in the 'vouchers' table with the new values from the said excel sheet where the old values match.


I don't want someone to write it for me. I've got it almost done, I just have a few problems such as these :
The program takes the server and database name to open. I don't know exactly how to open the database with them correctly.

Or does 'movenext' work on MSSql tables? I get an error when I use it on mssql but the same statement works fine when I use it on access.

Plus I just wanted to know if someone had a better idea. I was hoping someone could tell me something like "go this way or use this feature ..." I wasn't asking anyone to do it for me.

 
Old April 10th, 2007, 08:03 AM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 2,189
Thanks: 5
Thanked 59 Times in 57 Posts
Send a message via MSN to gbianchi
Default

hi there.. is this one time only operation??

b/c this will be better to do by hand...

HTH

Gonzalo

================================================== =========
Read this if you want to know how to get a correct reply for your question:
http://www.catb.org/~esr/faqs/smart-questions.html
^^Took that from dparsons signature and he Took that from planoie's profile
================================================== =========
My programs achieved a new certification (can you say the same?):
WORKS ON MY MACHINE
http://www.codinghorror.com/blog/archives/000818.html
================================================== =========





Similar Threads
Thread Thread Starter Forum Replies Last Post
Help needed ramabharti Javascript How-To 1 December 7th, 2006 06:42 AM
Help needed rrvinod ADO.NET 0 October 5th, 2006 09:44 AM
help needed! paquito Beginning PHP 2 November 16th, 2005 11:51 AM
A Little help needed matthew01 ASP.NET 1.0 and 1.1 Basics 3 November 9th, 2005 11:29 AM
help needed kfarooq Java Databases 1 June 27th, 2003 05:20 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.