home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Join TechIMO for Free!
Register Blogs FAQ Members List Calendar Search Today's Posts Mark Forums Read
Reply Get bargains at  »  Dealighted.com
 
Thread Tools
Currently Active Users: 1681
Discussions: 188,402, Posts: 2,243,609, Members: 232,632
Old April 8th, 2005, 06:02 AM   Digg it!   #1 (permalink)
Junior Member
 
Join Date: Apr 2005
Posts: 7
Exclamation
High school information system

Am a desprate computer science student who has a project due in 5 days.Have been trying to finish it for a while now but can't. It is a high school information system project that has a visual basic 6.0 interface and a microsoft access database. I can't link the database to the interface. Please help!!

Toyo is offline   Reply With Quote
Old April 8th, 2005, 03:06 PM     #2 (permalink)
Junior Member
 
Join Date: Apr 2005
Posts: 23
Did you look to see if there is a wizard inside Access that will do this for you?

Fillie is offline   Reply With Quote
Old April 10th, 2005, 03:21 PM     #3 (permalink)
I am a banana!
 
originel's Avatar
 
Join Date: Jun 2002
Location: Texas Tech
Posts: 3,921
Send a message via AIM to originel
How are you connecting to the database? there are a couple of different ways to do this: ole db, odbc, etc. C++ can't natively interact with a database, you have to use an interpreter (Which is what ole db and odbc are). Or have you even gotten this far?

Also are you using the CLI or are you using MFC/Win32API for a gui? Standard Library? We could use some more information about your project.

originel is offline   Reply With Quote
Old April 10th, 2005, 03:26 PM     #4 (permalink)
Unregistered
 
Join Date: Apr 2003
Posts: 423
Quote:
Originally Posted by Toyo
Am a desprate computer science student who has a project due in 5 days.Have been trying to finish it for a while now but can't. It is a high school information system project that has a visual basic 6.0 interface and a microsoft access database. I can't link the database to the interface. Please help!!
please post the form code .frm
AgentCrypto is offline   Reply With Quote
Old April 10th, 2005, 08:35 PM     #5 (permalink)
I am a banana!
 
originel's Avatar
 
Join Date: Jun 2002
Location: Texas Tech
Posts: 3,921
Send a message via AIM to originel
aacck...i can't read...sorry i thought you said visual c for some reason...disregard my post .
originel is offline   Reply With Quote
Old April 11th, 2005, 01:18 PM     #6 (permalink)
Junior Member
 
Join Date: Apr 2005
Posts: 7
Question
explanation of high school information system

Am trying to link an existing microsoft access database to a visual basic interface.How is this done?

On the menu of the system there is a statistics button that is supposed to get data from the database and display it in a form of a graph to show the overall school performance.I can't seem to work out that part of the system.Any help would be highly appreciated.

P.s I also have a database which stores usernames and passwords.Users can not change their passwords.How can i enable them to do so without changing the username or adding on more users?
Toyo is offline   Reply With Quote
Old April 11th, 2005, 01:33 PM     #7 (permalink)
Unregistered
 
Join Date: Apr 2003
Posts: 423
Lightbulb

Quote:
Originally Posted by Toyo
Am trying to link an existing microsoft access database to a visual basic interface.How is this done?

On the menu of the system there is a statistics button that is supposed to get data from the database and display it in a form of a graph to show the overall school performance.I can't seem to work out that part of the system.Any help would be highly appreciated.

P.s I also have a database which stores usernames and passwords.Users can not change their passwords.How can i enable them to do so without changing the username or adding on more users?
sounds like you want us to code the entire Application for you :rolleyes:

you will need to make a connection between the database & the application
to link the database -here's some sample code- :D
====
Me.OleDbConnection1.ConnectionString = "Jet OLEDB:Global Partial Bulk Ops=2;Jet OLEDB:Registry Path=;Jet OLEDB:Database L" & _
"ocking Mode=1;Data Source=""C:\Program Files\TechIMO\sample0101.mdb"";Je" & _
"t OLEDB:Engine Type=5;Jet OLEDB:Global Bulk Transactions=1;Provider=""Microsoft.J" & _
"et.OLEDB.4.0"";Jet OLEDB:System database=;Jet OLEDB:SFP=False;persist security in" & _
"fo=False;Extended Properties=;Mode=Share Deny None;Jet OLEDB:Create System Datab" & _
"ase=False;Jet OLEDB:Don't Copy Locale on Compact=False;Jet OLEDB:Compact Without" & _
" Replica Repair=False;User ID=Admin;Password =techimo;Jet OLEDB:Encry" & _
"pt Database=False"
====
also remove the update code & hide the add users command from the GUI

****it all depends on how you got it setup****
send the .frm via pm or something
also you should post which version of ACCESS you are using..
:cool:
AgentCrypto is offline   Reply With Quote
Old April 11th, 2005, 01:35 PM     #8 (permalink)
Unregistered
 
Join Date: Apr 2003
Posts: 423
if you are new to vb 6.0 programming use the database wizard under the tools menu
AgentCrypto is offline   Reply With Quote
Old April 14th, 2005, 12:01 PM     #9 (permalink)
Junior Member
 
Join Date: Apr 2005
Posts: 7
Arrow
form code

Hi!

Sorry have not checked mail latetly.Have been busy with my supervisor.He gave me a few days extension. Agent Crypto asked to to attach the form i am trying to code, but is'nt working.Any help would be welcome.

I have attached the form code
Attached Files
File Type: doc code.doc (25.5 KB, 73 views)
Toyo is offline   Reply With Quote
Old April 14th, 2005, 01:19 PM     #10 (permalink)
Unregistered
 
Join Date: Apr 2003
Posts: 423
Lightbulb

Quote:
Originally Posted by Toyo
Hi!

Sorry have not checked mail latetly.Have been busy with my supervisor.He gave me a few days extension. Agent Crypto asked to to attach the form i am trying to code, but is'nt working.Any help would be welcome.

I have attached the form code
put the project files in a zip file then post it or pm it
AgentCrypto is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may post new threads
You may 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
Trackbacks are Off
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
High school asking for your HELP kenstonhs IMO Community 42 October 31st, 2004 11:13 AM
Computer classes in high school... Rand Dusing Certification and Education 7 July 22nd, 2003 10:28 PM
Anyone famous go to your High school; college? shawshank62 IMO Community 39 July 8th, 2003 09:51 AM
Officially out of high school ben-the-slacker IMO Community 16 May 25th, 2003 07:24 AM
math class question (high school) Sweet IMO Community 12 May 29th, 2002 04:32 AM

Most Active Discussions
Is It Just Me? (2906)
3-days in and no threads about Gaza (161)
Misery Loves Company... (2144)
New Build ( Finally ) (7)
CPU wont boot (7)
Building a gaming computer advice (5)
I think I just killed my computer w.. (24)
RCA 52Inch HDTV wont turn on (5)
Folderchat Weekday thread (444)
Recent Discussions
Futronix has water features? (0)
Laptop proccesor to desktop mob.. (2)
Please help! multiple problems! (4)
RCA 52Inch HDTV wont turn on (5)
New Build ( Finally ) (7)
Common Spyware Solutions (97)
How do you move a hard-drive to.. (4)
What is the best external enclo.. (0)
Partition Magic 7.0 (Unallocate.. (17)
Blackberry Storm, Gears of War .. (1)
Core 2 Quad Q9550 system (3)
COWBOOM Ripoff! Used Laptop w/$.. (4)


All times are GMT -4. The time now is 04:28 AM.
TechIMO Copyright 2008 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28