Megalith
Well-known member
- Joined
- Aug 21, 2006
- Messages
- 66
- Programming Experience
- 10+
i'm developing a simple database for an application. In essence the database is updated by adding a new record if a unique ID is not found.
the unique ID is a part number and a description of the part and its quantity in stock are the elements to be added working along the following VBish code
is there a quick way to determine if a record exists. i was thinking maybe SQL here and doing a search for the ID returning false if the result is found.
This ADO is very new to me, if i have created a dataset in another subroutine( say its private) does it still reside in memory? do i have to connect each time i need to access it?
i'm having trouble grasping the concept of what ADO actually does.
the unique ID is a part number and a description of the part and its quantity in stock are the elements to be added working along the following VBish code
VB.NET:
if ID exists then
retrieve description and quantity
add to quantity and update database
else
create new row with description and quantity
end if
This ADO is very new to me, if i have created a dataset in another subroutine( say its private) does it still reside in memory? do i have to connect each time i need to access it?
i'm having trouble grasping the concept of what ADO actually does.