S
Stephen Plotnick
I've started some code but do not know how to get the anwser. Here is the
code:
I need the first four characters of data in a field (TextName) to get a name
from a DB and put the name back into TextName.
Dim conn As New
System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
source=C:\BMActivityReporting.mdb;Persist Security Info=False")
Dim sSQL As String = "select * from User Where UserNo=" & Mid(TextName.Text,
1, 4)
conn.Open()
Dim da As New System.Data.OleDb.OleDbDataAdapter(sSQL, conn)
Try
TextName.Text = da.
I do not know how to finish or if I'm headed in the right direction.
THanks,
Steve
code:
I need the first four characters of data in a field (TextName) to get a name
from a DB and put the name back into TextName.
Dim conn As New
System.Data.OleDb.OleDbConnection("Provider=Microsoft.Jet.OLEDB.4.0;Data
source=C:\BMActivityReporting.mdb;Persist Security Info=False")
Dim sSQL As String = "select * from User Where UserNo=" & Mid(TextName.Text,
1, 4)
conn.Open()
Dim da As New System.Data.OleDb.OleDbDataAdapter(sSQL, conn)
Try
TextName.Text = da.
I do not know how to finish or if I'm headed in the right direction.
THanks,
Steve