Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old October 27th, 2003, 05:28 PM
the_knack the_knack is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Clintwood, VA - USA
Posts: 4 the_knack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Need help with a VB database project.

I'm new to programming but I can find my way around the environment and can use the data control and most of the associated data bound controls. I'm trying to develop a VB front end for an existing Access 97 database. The database uses one table that contains contact information for the clients of a law practice. The fields are common to a database of this type, First & Last name, Address, File # etc. My problem is that I'm trying to add a function that will enable the user to log a phone call, letter or other daily activities and have it store it by date so that it can be brought up later in a list and browsed or printed along with the other client information. I suppose this would be similar to a contact management program. Any help would be very much appreciated. Adding to the Access database is no problem if it is necessary. I hope I've stated this problem well enough for you to understand but like I said earlier..............I'm new!
Thanks again,
Danny Mullins
Clintwood, VA - USA

Reply With Quote
  #2  
Old October 27th, 2003, 07:50 PM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
I consider it's what u mean:U will developer a db manager program to store customer information,And query some information to a customer..I recommend to use ms access if u have small information to be stored.If u have a lot of information(like 1000 customer information),I recommend u to use ms sql which has better process ability..

I can give u a sample code:http://www.freevbcode.com/ShowCode.Asp?ID=1342,and u can find more in the google.

Reply With Quote
  #3  
Old October 27th, 2003, 09:44 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,716 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 33 m 54 sec
Reputation Power: 688
I did this in my own custom contact manager by adding a diary table and some forms that allow adding/updating diary entries.

Reply With Quote
  #4  
Old October 28th, 2003, 12:56 AM
cleverpig cleverpig is offline
Contributing User
Dev Shed Beginner (1000 - 1499 posts)
 
Join Date: Jul 2003
Posts: 1,152 cleverpig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 7
Send a message via MSN to cleverpig
Hello,Doug G!Can u post your code to sharing??Or tell your mind about develope this code??

Reply With Quote
  #5  
Old October 28th, 2003, 10:31 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,716 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 33 m 54 sec
Reputation Power: 688
I added a 2nd table with a foreign key to contacts, a date stamp, and a text column.

Then SELECT * FROM contact_diary WHERE ContactID = <desired ID>

Reply With Quote
  #6  
Old October 28th, 2003, 11:21 AM
randomblink randomblink is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2003
Location: Just this side of hell, Tulsa, Oklahoma...
Posts: 13 randomblink User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 m 32 sec
Reputation Power: 0
Send a message via ICQ to randomblink Send a message via AIM to randomblink Send a message via Yahoo to randomblink
Huh?!

So are you trying to create a table in VB? Or do you want the SQL for interacting with that table with your VB Form?

Need more explanation...

Reply With Quote
  #7  
Old October 28th, 2003, 03:09 PM
the_knack the_knack is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Clintwood, VA - USA
Posts: 4 the_knack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks to all who responded

cleverpig, I'll try downloading that and have a look.

Doug, We may be on the same wavelength here but I'm not sure what a "foreign key" is. I was thinking that I needed to add another table to the Access database and the text field is the way to go but, how would I get the daily contact data into the text field and be able to get it back out in some formatted fashion for viewing or printing? This problem may be too detailed to try and solve on a forum since I'm not sure how to explain it in terms that experienced programmers, like you guys, can understand. I do appreciate everyone trying to help.
Danny

Reply With Quote
  #8  
Old October 28th, 2003, 05:42 PM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,716 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 33 m 54 sec
Reputation Power: 688
A foreign key is a field in the 2nd table that links you back to the 1st table. In this case, assuming you have contacts in a table with a contact ID field, the 2nd table would have a field that holds the contact ID.

Reply With Quote
  #9  
Old October 28th, 2003, 05:54 PM
the_knack the_knack is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Clintwood, VA - USA
Posts: 4 the_knack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Doug G

Gotcha' I'll try adding the second table and set it up with the id, date and text fields and then see if I can come up with some code that will send the daily entries to the text box. Maybe if I can get them in there I'll figure out some way to get them out and formatted later.
Thanks much for the help,
Danny

Reply With Quote
  #10  
Old October 29th, 2003, 08:49 AM
the_knack the_knack is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2003
Location: Clintwood, VA - USA
Posts: 4 the_knack User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Doug G

Quote:
Originally posted by Doug G
I did this in my own custom contact manager by adding a diary table and some forms that allow adding/updating diary entries.


Doug,
Any chance of having a look at your contact manager or at least the "diary" section of it? I think it would help me with my project but I understand it's copywritten or otherwise private.
Thanks my friend,
Danny

Reply With Quote
  #11  
Old October 29th, 2003, 11:40 AM
Doug G Doug G is offline
Grumpier Old Moderator
Dev Shed God 12th Plane (10500 - 10999 posts)
 
Join Date: Jun 2003
Posts: 10,716 Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level)Doug G User rank is Brigadier General (60000 - 70000 Reputation Level) 
Time spent in forums: 1 Month 33 m 54 sec
Reputation Power: 688
Well, my contact program is not web accessible and it's a unique program I've thrown together for myself over the years.

In general, from a contact form I have a button "Diary". This opens a popup form that gets the current contact ID passed to it, and provides controls to display/add diary entries into the diary table. The diary form is pretty simple, just a few controls to hold the contact ID, date/time and a multiline text field to enter stuff.

hth

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Need help with a VB database project.


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support |