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

How to create command codes

38
Hi Dear All
I I don't know how to write command codes in VB such as Delete,Add,Next,Prevuios,and others

I have read most Question and Answere in this Forum i tried but I got wrong message I may select wrong Library name that is ODB if it is wrong also let me know.

Thanks in advance.
(alem)
Mar 13 '07 #1
3 1050
willakawill
1,646 1GB
Hi alem, you can do a google search for 'vb ado tutorial' and that should bring up far more than you care to read on the subject. Good luck.
Mar 13 '07 #2
The simplest way to write code when you use data control.
Select microsoft ADO data control 6.0(ADODB)from Project--componant.
Drag control to form.Right click select properties.Give appropriate connecttion ,record source properties.If you are using SQL server ,wtite server name,user Id,password and test connection(first click Build).If sucesssed go to recordsourse select 2 adCmdtable write table name.Now change textBox properties datasource and datafield property.
Now you can write code for New command as
adodcname.recordset.AddNew
similarly for delete,save
adodcname.recordset.delete
Mar 14 '07 #3
willakawill
1,646 1GB
Which version of vb are you using?
Mar 14 '07 #4

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

Similar topics

8
by: Raymond H. | last post by:
Hello, 1- How to see, in a Label, the URL of a link that the mouse pass over? (in the WebBrower control in a vb projet). 2- How to create a menu and a submenu via a button Command1? and...
2
by: joe | last post by:
Hello, I have the following commands: testb -s <size> testb -s <size> -o <input file> testb -s <size> -o <codes> How do i split the commands so that all three are valid. And how do i check...
7
by: Bil Muh | last post by:
Esteemede Developers, I would like to Thank All of You in advance for your sincere guidances. I am developing a software using Visual C++ .NET Standard Edition with Windows Form (.NET)...
2
by: Derek Jones | last post by:
I am currently working on an application for our Business Office to easily search for new budget codes that we have to establish due to an administrative system conversion we are currently...
2
by: Chua Wen Ching | last post by:
Hi, I just want to create a similar tool just like vs.net debugging, you can step into every command with line highlights (normally in red or yellow), change value within that line of code on...
0
by: qwe85 | last post by:
Peter, I can't find any codes from the links that u gave me.Perhaps i'm not an IT savvy guy.I'm not good at programming. Would you kindly give me the direct links or direct codes on how to create...
3
by: holysmokes99 | last post by:
I get an error when I try to execute the following code using ADO.Net in VB.Net: conn.open sqlString="CREATE LOGIN test WITH PASSWORD = '1qaz2wsx'" command=new SqlCommand(sqlString)...
19
by: Brett Romero | last post by:
Here's a table of data I'm putting into a collection: CodeId CodeGroup CodeSubGroup Type 1 K K.1 Shar1 2 K ...
27
by: max | last post by:
Hello, I am a newbye, and I'm trying to write a simple application. I have five tables with three columns; all tables are identical; I need to change some data in the first table and let VB...
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
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: 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:
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
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
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.