473,403 Members | 2,183 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,403 software developers and data experts.

Difficulty learning

Can someone suggest a really elementary learning forum
for vb.net? I am trying to learn VB.net web in
conjunction with MS Sql data access. My previous
experience has been with desktop databases, and I am
struggling with the simplest concepts; find myself
wasting days and days researching tools that don't
accomplish what I need.

For example, using the dataset components with a
MSSqlconnection, how can I use a textbox user input to
search an open database table at the on lost focus event
of the textbox? In Visual Dbase, I could attach an event
to the textbox control that would store the user input to
a variable, for instance an id number, and 'seek' the
value in an open indexed table, and then store the name,
address, birthdate from that record to existing textboxes
on the form, then move to the next empty textbox,
something like this:
thisid=form.textbox.value
if seek(thisid)
thisname=table.fields.name.value

Nov 20 '05 #1
3 2969
I accidentally pressed the send key before I finished,
the example I was trying to use is;

Function Textbox1.OnLostFocus 'locate person's idno in
'person.dbf table and fill in additional information
'on form from record

thisid=form.textbox.value
idisnew = false
use thistable order thisindex
if seek(thisid)
Textbox2.text=table.fields.name.value
Textbox3.text=table.fields.address.value
Textbox4.text=table.fields.citystzip.value
Textbox5.text=table.fields.birthdate.value
Textbox6.setfocus
else
idisnew = true
Textbox2.setfocus


-----Original Message-----
Can someone suggest a really elementary learning forum
for vb.net? I am trying to learn VB.net web in
conjunction with MS Sql data access. My previous
experience has been with desktop databases, and I am
struggling with the simplest concepts; find myself
wasting days and days researching tools that don't
accomplish what I need.

For example, using the dataset components with a
MSSqlconnection, how can I use a textbox user input to
search an open database table at the on lost focus event
of the textbox? In Visual Dbase, I could attach an eventto the textbox control that would store the user input toa variable, for instance an id number, and 'seek' the
value in an open indexed table, and then store the name,
address, birthdate from that record to existing textboxeson the form, then move to the next empty textbox,
something like this:
thisid=form.textbox.value
if seek(thisid)
thisname=table.fields.name.value

.

Nov 20 '05 #2
"patricia59" <di******@aol.com> wrote in news:02b701c37c8a$1c31c260
$a*******@phx.gbl:
Can someone suggest a really elementary learning forum
for vb.net?


Are you familiar with Object Oriented Programming Concepts? If not, you may
want to pick up a book on OO design before even beginning to use VB.NET.
Many of VB.NET's advantages are that it is an OO language.

If you're looking for material, Wrox Publishing makes several good VB.NET
books. You can find them at your local bookstore (the books with the red
covers) : )

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
http://members.ebay.com/aboutme/coolspot18/
Nov 20 '05 #3
Hi Patricia,

I come from essentially the same environment, so I understand what you're
going through.

For the example you post, it's not too hard - on the leave event on the
textbox control, you can search for the value of the textbox.text pretty
easily if you know ado .net. I requires that you open a connection, open a
dataset (via dataadapter and then its fill method), set up a dataview (among
other ways of searching a datatable in a dataset) and then proceed from
there. If you need an example, email me back and I will provide a
rudimentary build of these steps. Now updating the backend table in ms sql
is a bit harder, as ado .net requires an insert command or at least the
presence of a commandbuilder object.

But you're a programmer and you can do this stuff, I assure you. And it is
the future, so you're on the right path.

Don't go for too basic texts. Progamming Visual Basic .Net (balena), MS
press is good; for table/database work - which is key to most robust
systems - Microsoft ADO .Net by Sceppa is also very good (also MS press).
Apress has a number of very good books on the .net framework and .net in all
specific areas. Troelson is very good, but he is advanced and you may not
be ready for that yet. Also, get a few good books on sql server -
developing sp's, using tsql, etc. Apress has some good books here also. Go
to Amazon and search to you hearts content.

And still it will take time. I developed a solution called 'dataworks' just
to have templates for inserting rows with/without an sql sp, using
dataviews, using defaultview, searching on PK, finding the index after the
search, etc. It's hard and takes some time, and the toughest part is that
it's so new that often you can't get an answer, but the newsgroups are
great - Herfried here and others at ado .net and sql server newsgroups are
brilliant and seem to know everything, so posting a question generally leads
to the solution.

HTH,
Bernie Yaeger

"patricia59" <di******@aol.com> wrote in message news:02b701c37c8a$1c31c260$
a4******@phx.gbl...
Can someone suggest a really elementary learning forum
for vb.net? I am trying to learn VB.net web in
conjunction with MS Sql data access. My previous
experience has been with desktop databases, and I am
struggling with the simplest concepts; find myself
wasting days and days researching tools that don't
accomplish what I need.

For example, using the dataset components with a
MSSqlconnection, how can I use a textbox user input to
search an open database table at the on lost focus event
of the textbox? In Visual Dbase, I could attach an event
to the textbox control that would store the user input to
a variable, for instance an id number, and 'seek' the
value in an open indexed table, and then store the name,
address, birthdate from that record to existing textboxes
on the form, then move to the next empty textbox,
something like this:
thisid=form.textbox.value
if seek(thisid)
thisname=table.fields.name.value


Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

28
by: SStory | last post by:
Hello Group. I am a VB/VB.NET programmer. I have done some C/C++ years ago. I am considering a job opportunity which is unfortunately in C# and not VB.NET. What is the group's opinion on...
11
by: sciontologist | last post by:
( 9 in the first place, means difficulty in the beginning? ) I'm new at css, at least for the sizing, positioning and decorating of div tags. But I am a java/c/c++/perl/php/sh/bash programmer,...
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?
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
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
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.