![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Newbie
Join Date: Apr 2005
Location: london
Posts: 4
Rep Power: 0
![]() |
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 ![]() |
|
|
|
|
|
#2 |
|
Expert Programmer
|
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. |
|
|
|
|
|
#3 |
|
Newbie
Join Date: Apr 2005
Location: london
Posts: 4
Rep Power: 0
![]() |
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!!! ![]() |
|
|
|
|
|
#4 |
|
Expert Programmer
|
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 DoCmd.GoToRecord , , acNext |
|
|
|
|
|
#5 |
|
Programming Guru
![]() ![]() ![]() |
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." |
|
|
|
|
|
#6 |
|
Expert Programmer
|
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. |
|
|
|
|
|
#7 |
|
Newbie
Join Date: Apr 2005
Location: london
Posts: 4
Rep Power: 0
![]() |
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
![]() |
|
|
|
|
|
#8 |
|
Programming Guru
![]() Join Date: Oct 2004
Location: namespace std
Posts: 1,246
Rep Power: 5
![]() |
yeah, bye.
__________________
i put on my robe and wizard hat... Have you ever heard of Plato, Aristotle, Socrates?...Morons. |
|
|
|
|
|
#9 |
|
Expert Programmer
|
well said!
|
|
|
|
|
|
#10 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9
![]() |
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.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|