473,396 Members | 2,011 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

vb queries

please help me over my project. . .
how to create a program using adodc.as in the case of a library searching and saving accounts. . .
thanks. . .
Feb 17 '08 #1
17 1450
lotus18
866 512MB
please help me over my project. . .
how to create a program using adodc.as in the case of a library searching and saving accounts. . .
thanks. . .
We are not doing assignments/homeworks here. Attempt to create that program and if you have some problems that's the time we can help you. Please observe posting guidelines : )
Feb 17 '08 #2
Killer42
8,435 Expert 8TB
Sorry yosh29rs, but TheScripts is strictly English-only. I've deleted your post.
Feb 18 '08 #3
We are not doing assignments/homeworks here. Attempt to create that program and if you have some problems that's the time we can help you. Please observe posting guidelines : )
please help me over the codings.. . . i really need it asap. . .really badly. . .thanks
Feb 19 '08 #4
debasisdas
8,127 Expert 4TB
please help me over the codings.. . . i really need it asap. . .really badly. . .thanks
Can you kindly post what you have tried sofar .
Feb 19 '08 #5
lotus18
866 512MB
please help me over the codings.. . . i really need it asap. . .really badly. . .thanks
OK, I'll try. Just post some of your codes here : )
Feb 19 '08 #6
these are what ive tried.some of the codes doesnt work.thanks for the help

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdClr_Click()
  2. txtFname = ""
  3. txtLname = ""
  4. txtMname = ""
  5. txtAddC = ""
  6. txtAddZ = ""
  7. txtAddB = ""
  8. txtDate = ""
  9. txtId = ""
  10. txtDatebirth = ""
  11. End Sub
  12.  
  13. Private Sub cmdSave_Click()
  14. Adodc1.Recordset.AddNew
  15.  
  16. 'let the  fields of the database table hold the value on your textboxes
  17. AdoNew.Recordset.Fields("fname") = txtFname.Text
  18. AdoNew.Recordset.Fields("lname") = txtLname.Text
  19. AdoNew.Recordset.Fields("mname") = txtMname.Text
  20. AdoNew.Recordset.Fields("addb") = txtAddC.Text
  21. AdoNew.Recordset.Fields("addz") = txtAddZ.Text
  22. AdoNew.Recordset.Fields("addc") = txtAddB.Text
  23. AdoNew.Recordset.Fields("date1") = txtDate.Value
  24. AdoNew.Recordset.Fields("id") = txtId.Text
  25. AdoNew.Recordset.Fields("datebirth") = txtDatebirth.Value
  26. 'Save the record on the database table
  27. AdoNew.Recordset.Update
  28.  
  29. 'Inform the user
  30. MsgBox "Add New Successful!", vbInformation, "SUCCESSFUL"
  31.  
  32. End Sub
  33.  
  34. Private Sub Command4_Click()
  35. Unload Me
  36. End Sub
  37.  
  38. End Sub
  39.  
  40. Private Sub cmdSaveAdd_Click()
  41. Adodc1.Recordset.AddNew
  42.  
  43. 'let the  fields of the database table hold the value on your textboxes
  44. AdoNew.Recordset.Fields("fname") = txtFname.Text
  45. AdoNew.Recordset.Fields("lname") = txtLname.Text
  46. AdoNew.Recordset.Fields("mname") = txtMname.Text
  47. AdoNew.Recordset.Fields("addb") = txtAddC.Text
  48. AdoNew.Recordset.Fields("addz") = txtAddZ.Text
  49. AdoNew.Recordset.Fields("addc") = txtAddB.Text
  50. AdoNew.Recordset.Fields("date1") = txtDate.Text
  51. AdoNew.Recordset.Fields("id") = txtId.Text
  52. AdoNew.Recordset.Fields("datebirth") = txtDatebirth.Text
  53. 'Save the record on the database table
  54. AdoNew.Recordset.Update
  55.  
  56. 'Inform the user
  57. MsgBox "Add New Successful!", vbInformation, "SUCCESSFUL"
  58. txtFname.Text = ""
  59. txtLname.Text = ""
  60. txtMname.Text = ""
  61. txtAddC.Text = ""
  62. txtAddZ.Text = ""
  63. txtAddB.Text = ""
  64. txtDate.Text = ""
  65. txtId.Text = ""
  66. txtDatebirth.Text = ""
  67.  
  68.  
  69. End Sub
Feb 19 '08 #7
lotus18
866 512MB
Expand|Select|Wrap|Line Numbers
  1.  
  2. Private Sub cmdClr_Click()
  3.    Dim ctrl As Control
  4.    For Each ctrl In Me
  5.         If TypeOf ctrl Is TextBox Then
  6.            ctrl.Text=""
  7.          End If
  8.    Next
  9. End Sub
  10.  
  11. Private Sub cmdSave_Click()
  12. Adodc1.Recordset.AddNew
  13.  
  14. 'let the  fields of the database table hold the value on your textboxes
  15. AdoNew.Recordset.Fields("id") = txtId.Text
  16. AdoNew.Recordset.Fields("fname") = txtFname.Text
  17. AdoNew.Recordset.Fields("lname") = txtLname.Text
  18. AdoNew.Recordset.Fields("mname") = txtMname.Text
  19. AdoNew.Recordset.Fields("addb") = txtAddC.Text
  20. AdoNew.Recordset.Fields("addz") = txtAddZ.Text
  21. AdoNew.Recordset.Fields("addc") = txtAddB.Text
  22. AdoNew.Recordset.Fields("date1") = txtDate.Text '<<<What's the format of your Date?
  23. AdoNew.Recordset.Fields("datebirth") = txtDatebirth.Text '<<<What's the format of your Date?
  24. 'Save the record on the database table
  25. AdoNew.Recordset.Update
  26.  
  27. 'Inform the user
  28. MsgBox "Add New Successful!", vbInformation, "SUCCESSFUL"
  29.  
  30. End Sub
  31.  
  32. Private Sub Command4_Click()
  33.     Unload Me 'Exit Form
  34. End Sub
  35.  
Rey Sean

I think for getting the date values it is better to use maskededit box, or datepicker : )
Feb 19 '08 #8
thank you for your kind and concern reply lotus. . .id like also to hear from our experts but it seems that their pretty bush huh
Feb 19 '08 #9
Killer42
8,435 Expert 8TB
There's something I don't understand about this code. Shouldn't Adodc1 and AdoNew actually refer to the same thing?
Feb 20 '08 #10
lotus18
866 512MB
There's something I don't understand about this code. Shouldn't Adodc1 and AdoNew actually refer to the same thing?
Oh sorry for that, it should be AdoNew : )
Feb 20 '08 #11
Killer42
8,435 Expert 8TB
Oh sorry for that, it should be AdoNew : )
Could this be the source of some problem?
Feb 20 '08 #12
lotus18
866 512MB
I think so : ) .
Feb 20 '08 #13
our instructor was so mean about the system i made. . .i really dont understan her. . .how cn i improve my programing language?
Feb 21 '08 #14
Killer42
8,435 Expert 8TB
our instructor was so mean about the system i made. . .i really dont understan her. . .how cn i improve my programing language?
Well, one of the most important things in programming is that you must pay attention to the details. For instance, a quick glance at this post shows very sloppy use of English - are you even aware of it. A bit of precision might help. Is your programming as rough as this? The tiniest typo or wrong variable name can have big consequences - for example, see the bug I pointed out in post #10.

Also, consider the specific criticisms provided by your instructor. And finally, try tracking down a book or two on things like programming style. I don't think there's any simple way we can tell you how to program "better".
Feb 21 '08 #15
Well, one of the most important things in programming is that you must pay attention to the details. For instance, a quick glance at this post shows very sloppy use of English - are you even aware of it. A bit of precision might help. Is your programming as rough as this? The tiniest typo or wrong variable name can have big consequences - for example, see the bug I pointed out in post #10.

Also, consider the specific criticisms provided by your instructor. And finally, try tracking down a book or two on things like programming style. I don't think there's any simple way we can tell you how to program "better".

oh, is that so? well we filipinos really write things in shortcut manners. . .because we are so frugal on spending stuffs. . .
is it not okay?just because you dont get it?
maybe a visit here in the pjil will explain things much better. . .
Feb 22 '08 #16
Killer42
8,435 Expert 8TB
oh, is that so? well we filipinos really write things in shortcut manners. . .because we are so frugal on spending stuffs. . .
is it not okay?just because you dont get it?
maybe a visit here in the pjil will explain things much better. . .
Two questions...
  • How does dropping letters out of words constitute being "frugal"? (An extra letter costs you more, does it?)
  • What does pjil mean?
Feb 24 '08 #17
lotus18
866 512MB
Two questions...
  • How does dropping letters out of words constitute being "frugal"? (An extra letter costs you more, does it?)
  • What does pjil mean?


I think he's referring Pjil. to Phils. (Philippines)
Feb 25 '08 #18

Sign in to post your reply or Sign up for a free account.

Similar topics

6
by: Andreas Lauffer | last post by:
I changed from Access97 to AccessXP and I have immense performance problems. Details: - Access XP MDB with Jet 4.0 ( no ADP-Project ) - Linked Tables to SQL-Server 2000 over ODBC I used...
5
by: WertmanTheMad | last post by:
Ive been playing with this for a few days and thought I might thow it out for seggestions. I have Several Queries that need counts returned The Queries are Mutually Exclusive meaning whatever...
1
by: Roger Green | last post by:
I have inherited a complex database that has many dozens of queries that derive data from a people table. I now need to be able to run these queries (from within a significant number of forms)...
9
by: Dom Boyce | last post by:
Hi First up, I am using MS Access 2002. I have a database which records analyst rating changes for a list of companies on a daily basis. Unfortunately, the database has been set up (by my...
3
by: NeilAnderson | last post by:
I'm a fairly new user of access & I've never had any training, so I'm wondering if I'm doing the right thing here, or if it matter at all. I'm building a database for room booking purposes and I'm...
5
by: Jerry Hull | last post by:
I'm working with a database developed by an untrained person over several years - and on a network that has recently been upgraded with a new server installed and MS office upgraded from 2K (I...
0
by: MHenry | last post by:
Hi, I know virtually nothing about creating Macros in Access. I would appreciate some help in creating a Macro or Macros that automatically run(s) 14 Queries (three Make Table Queries, and 11...
44
by: Greg Strong | last post by:
Hello All, Is it better to create a query in DAO where a report has 4 sub-reports each of whose record source is a query created at runtime and everything is in 1 MDB file? From what I've...
1
by: loosecannon_1 | last post by:
Hello everyone, I am hoping someone can help me with this problem. I will say up front that I am not a SQL Server DBA, I am a developer. I have an application that sends about 25 simultaneous...
5
by: marshmallowww | last post by:
I have an Access 2000 mde application which uses ADO and pass through queries to communicate with SQL Server 7, 2000 or 2005. Some of my customers, especially those with SQL Server 2005, have had...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.