Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Apr 11th, 2005, 1:28 PM   #1
princess
Newbie
 
Join Date: Apr 2005
Location: london
Posts: 4
Rep Power: 0 princess is on a distinguished road
Question Plz Help Me!!!

hiya i desperatly need help wid my AS computing coursework (terry;s turkeys). i need to use visual basics (which i have neva used b4 !!!) to link up my forms wid my tables. plz could sum1 send me VB codes so i can do this, A.S.A.P, cz it needs to b dun by dis thur!!! thnx
princess is offline   Reply With Quote
Old Apr 11th, 2005, 2:07 PM   #2
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
If you're using access, the in-database forms "link up" to the data by themselves.

If you want to link your database to an external VB application, then the data control does a good job through Jet or ODBC (you can pull the data by setting the DataSource property to the appropriate settings) - you can even get a wizard to do this bit!

It's when you want to do something more complicated involving the interpretation or validation of data that you need VB (or VBA in office) code - if you could be more specific that'd be helpful.

Good luck with that, though I thought the exams weren't for some time.
Rory is offline   Reply With Quote
Old Apr 12th, 2005, 2:40 AM   #3
princess
Newbie
 
Join Date: Apr 2005
Location: london
Posts: 4
Rep Power: 0 princess is on a distinguished road
Smile hi

yeh my exam is at da end of may/ begginning of june, but i have to hand in a 1st draft of terrys turkeys this thur! my teacher is an idiot...dsnt seem2 undastand much himself!

basically im using access 2000. ive made all my tables and all my forms but the problem is wen i put customer details into the forms, i have a command button that says 'confirm'. when i click it i want my data to appear in the table (thats what i mean by linking up my tables and my forms) and im using (or trying2 use!!) visual basics by writing in codes to make this happen but its all a big fat mess!!

the only useful thing my teacher said wz 2 use visual basics and thats it!!

plz sum1 out there help me!!!
princess is offline   Reply With Quote
Old Apr 12th, 2005, 4:09 AM   #4
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Right, the simplest way to interact with the form in VBA is to manipulate the DoCmd object exposed by the navigation controls, required constants can be found through the object inspector or help. To actually add code you'll have to tie it to a VB event handler (right click the object -> build event).
For instance the following code will save the current record:
DoCmd.DoMenuItem acFormBar, acRecordsMenu, acSaveRecord
So to go to the next record would be:
DoCmd.GoToRecord , , acNext
and so on. Hope this is helpful.
Rory is offline   Reply With Quote
Old Apr 12th, 2005, 8:14 AM   #5
Infinite Recursion
Programming Guru
 
Infinite Recursion's Avatar
 
Join Date: Jul 2004
Location: United States
Posts: 3,467
Rep Power: 8 Infinite Recursion is on a distinguished road
Send a message via MSN to Infinite Recursion Send a message via Yahoo to Infinite Recursion
This assignment sounds awfully familiar... is this guy in your class?

http://www.programmingforums.org/for...ead.php?t=3235
__________________
http://jasonpowers.net

"There are a thousand hacking at the branches of evil to one who is striking at the root."
Infinite Recursion is offline   Reply With Quote
Old Apr 12th, 2005, 5:17 PM   #6
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
Nope (at least I don't think so!) - same continent at least.
"Terry's Turkeys" is this year's coursework for one of the standard Computing qualifications in 16/17 academic year in the UK.
Rory is offline   Reply With Quote
Old Apr 16th, 2005, 11:48 AM   #7
princess
Newbie
 
Join Date: Apr 2005
Location: london
Posts: 4
Rep Power: 0 princess is on a distinguished road
thanx!!!

thanx 4 ur help!, i managed to finish off the flippin coursework!! it wz horrid but i dun it dint realise i h8 computing sooo much until dis coursework!!! thanx again byeeee
princess is offline   Reply With Quote
Old Apr 16th, 2005, 2:12 PM   #8
bl00dninja
Programming Guru
 
bl00dninja's Avatar
 
Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5 bl00dninja is on a distinguished road
yeah, bye.
__________________
i put on my robe and wizard hat...

Have you ever heard of Plato, Aristotle, Socrates?...Morons.
bl00dninja is offline   Reply With Quote
Old Apr 16th, 2005, 4:25 PM   #9
Rory
Expert Programmer
 
Rory's Avatar
 
Join Date: Jan 2005
Location: London
Posts: 542
Rep Power: 4 Rory is on a distinguished road
Send a message via MSN to Rory
well said!
Rory is offline   Reply With Quote
Old Apr 17th, 2005, 2:44 PM   #10
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Reminds me - I really should finish that off... thinking of rewriting my tables. I've decided to stick with C# instead of scrapping it and going over to PHP - I want this app to be independent.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

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

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




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 11:39 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC