473,378 Members | 1,389 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,378 software developers and data experts.

Help Me!!!

cyberking
Hi.

I started learning VB 6 a few days ago. Now, I am trying to build a database application, similar to a telephone directory.
It performs basic functions as displaying name,number and email id.
i have three buttons on my form, Add, Save and Delete to add new entries or to delete existing ones.

Wat is happening is that when I click the Add button, all the text boxes are blanked out.When I fill in new entries and try saving it, i am getting an error "Insufficient base table information for updating or refreshing.".same happens for Delete button too.

My code for the Save and delete buttons are as shown below
Please help me!!!
thanks in advance

Expand|Select|Wrap|Line Numbers
  1. Private Sub cmdSave_Click()
  2.    dtaPhone.Recordset.Update   ' Something here???
  3.    dtaPhone.Refresh
  4.    cmdAdd.Enabled = True
  5.    cmdSave.Enabled = False
  6.    cmdDelete.Enabled = True
  7.    txtName.SetFocus
  8. End Sub
  9.  
  10. Private Sub cmdDelete_Click()
  11.    dtaPhone.Recordset.Delete         ' Something here???
  12.    dtaPhone.Recordset.MoveNext
  13.    If dtaPhone.Recordset.EOF = True Then
  14.       dtaPhone.Refresh
  15.       If dtaPhone.Recordset.BOF = True Then
  16.          MsgBox "You must add a record.", vbOKOnly +
  17.          vbInformation, "Empty file"
  18.          Call cmdAdd_Click
  19.       Else
  20.          dtaPhone.Recordset.MoveFirst
  21.       End If
  22.    End If
  23.    txtName.SetFocus
  24. End Sub
Jan 30 '07 #1
2 951
willakawill
1,646 1GB
Hi. Please post the details of the table you want to update
Jan 30 '07 #2
Hi!
The database is a flat database with jus one table. It consists of three fields namely Name, Description and Phone.

I jus want the changes i have to make in order to be able to make a new entry and delete the existing records.

Please help.. Its urgent!

thanks in advance..

Regards
CyberKing
Jan 30 '07 #3

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

Similar topics

3
by: Krakatioison | last post by:
Hi all, I need a help to write a simple preg_match. Imagine, I've got like 5kb of text where one part of the text always starts with: and ends with: Number after "[quote:" is always...
3
by: Lodewijk van Haringhal | last post by:
I'am new with javascritping not with programming. Is there nobody who can help me with ths simple promblem? :) Please, please give me a hint. Please help me with this script. I have two lists in...
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have do a test program, but I have no correct doing...
1
by: PerryC | last post by:
Can someone help me accomplish the following in a MSAccess Report: 1. Check if Me.Discipline = "RN" (within the source query) 2. Then check the Me.YearOfEmployment: (again within the same source...
1
by: Rahul | last post by:
Hi Everybody I have some problem in my script. please help me. This is script file. I have one *.inq file. I want run this script in XML files. But this script errors shows . If u want i am...
7
by: Mickyd1561 | last post by:
Hey everyone I'm new to this groups thing and thought maybe someone can help me. My problem is that I can't view specific images on only one website. www.baseballu.net is my baseball team's...
0
by: debipraad | last post by:
Hi all...... Let me tell all abt me and then i will tell abt my problem and then i need your help to go forward .......... I am debiprasad...Working as a Rigging Artist in Paprikaas Animation...
22
by: Amali | last post by:
I'm newdie in c programming. this is my first project in programming. I have to write a program for a airline reservation. this is what i have done yet. but when it runs it shows the number of...
3
by: RedRoses | last post by:
Hey guys i really need ur help in my C++ assignment , its very hard 4 me coz its the first time 4 me to take a course in programming or anything related to computer !!! :s so plzzzzzzzzz help me...
5
by: tabani | last post by:
I wrote the program and its not giving me correct answer can any one help me with that please and specify my mistake please it will be highly appreciable... The error arrives from option 'a' it asks...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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...

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.