Click here to Skip to main content
15,914,111 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: SQL Security for your VB apps Pin
Dave Kreskowiak15-Sep-07 6:13
mveDave Kreskowiak15-Sep-07 6:13 
GeneralRe: SQL Security for your VB apps Pin
Paul Conrad15-Sep-07 6:25
professionalPaul Conrad15-Sep-07 6:25 
GeneralRe: SQL Security for your VB apps Pin
Dave Kreskowiak15-Sep-07 6:38
mveDave Kreskowiak15-Sep-07 6:38 
GeneralRe: SQL Security for your VB apps Pin
Paul Conrad15-Sep-07 9:37
professionalPaul Conrad15-Sep-07 9:37 
GeneralRe: SQL Security for your VB apps Pin
Dave Kreskowiak15-Sep-07 11:26
mveDave Kreskowiak15-Sep-07 11:26 
GeneralRe: SQL Security for your VB apps Pin
Paul Conrad15-Sep-07 6:24
professionalPaul Conrad15-Sep-07 6:24 
QuestionRemoving items from listview .... problem Pin
RaveRare14-Sep-07 19:55
RaveRare14-Sep-07 19:55 
QuestionNeed help on my Thesis... Pin
Holy Orders14-Sep-07 17:56
Holy Orders14-Sep-07 17:56 
Guys, I badly need your help on this. My thesis drives me nuts with this program. I have encountered a few here and there errors with our proposed system. I'll be enumerating them here. I really need help here, since the pre-defense will be on the 28th of the month...

BTW, just for info, I am a ComSci student
My program is on SQL coding and uses VB .NET 2003
As for database, I use Microsoft Access

Errors
* When I try to add user information, I generate this error
Data type mismatch in criteria expression
Simply put, it's when I try to add values to the database for student
information like student number, last name, course, etc.

* I see this error when I code this
Dim f3dg1 as List
Well, the f3dg1 is user defined, i just referred to it as mnemonics to form3
which has a datagrid. What the error in here is the keyword List, which VB "doesn't seem to recognize"

* Ok, here's the last. Here is the program segment for my datagrid.
I can't display column headers in my datagrid (gave me countless sleepless nights... duh) which is why my query (well, actually just a masterlist) don't work.

Try
Dim f As New List
Dim ja As OleDbDataAdapter
Dim ds As DataSet
Dim dv As DataView
Dim dg As New DataGrid
Dim str As String
Dim t As New DataGridTableStyle
Dim d As DataRow
Dim f3dgc1 As DataGridTextBoxColumn
Dim f3dgc2 As DataGridTextBoxColumn
Dim f3dgc3 As DataGridTextBoxColumn

f.f3p1.Controls.Clear()
f.f3p1.Controls.Add(dg)
openconn()
str = "Select * from books"
f.show()
ja = New OleDbDataAdapter(str, dbconn)
f.f3p1.controls.add(dg)
dg.Height = 584
dg.Width = 320
ds = New DataSet
ds.Clear()
ja.Fill(ds, "books")
dg.TableStyles.Add(t)
t.MappingName = "books"

f3dgc1.MappingName = "bookid"
f3dgc1.HeaderText = "Book ID"
f3dgc1.Width = "100"
f3dgc2.MappingName = "bname"
f3dgc2.HeaderText = "Book Name"
f3dgc2.Width = "300"
f3dgc3.MappingName = "aname"
f3dgc3.HeaderText = "Author Name"
f3dgc3.Width = "200"

If Me.BindingContext(ds, "books").Count > 0 Then
With dg
.Dock = DockStyle.Fill
.DataSource = ds
.DataMember = "books"
.Refresh()
End With
Else
f.close()
dg.Visible = False
MsgBox("no record found", MsgBoxStyle.Exclamation)
End If
dg.Refresh()
dg.DataSource = ds
dg.DataMember = "books"
dg.ReadOnly = True
closeconn()
Catch ex As Exception
MsgBox(ex.Message)
End Try




I can send you the program as a whole if you want, if these confuses you.
Please, I don't want to see a grade of 5.0 on my thesis subject Frown | :(
Hoping for quick responses.

Loose Lips Sink Ships
AnswerRe: Need help on my Thesis... Pin
Paul Conrad14-Sep-07 18:57
professionalPaul Conrad14-Sep-07 18:57 
GeneralRe: Need help on my Thesis... Pin
Holy Orders14-Sep-07 19:01
Holy Orders14-Sep-07 19:01 
AnswerRe: Need help on my Thesis... Pin
Paul Conrad14-Sep-07 19:11
professionalPaul Conrad14-Sep-07 19:11 
AnswerRe: Need help on my Thesis... Pin
Dave Kreskowiak15-Sep-07 2:53
mveDave Kreskowiak15-Sep-07 2:53 
GeneralRe: Need help on my Thesis... Pin
Paul Conrad15-Sep-07 3:46
professionalPaul Conrad15-Sep-07 3:46 
GeneralRe: Need help on my Thesis... Pin
Dave Kreskowiak15-Sep-07 6:04
mveDave Kreskowiak15-Sep-07 6:04 
GeneralRe: Need help on my Thesis... Pin
Paul Conrad15-Sep-07 6:23
professionalPaul Conrad15-Sep-07 6:23 
Questionhow to upload the picture file into report file (.rpt) with VB6 and Crystal Report 9.2 Pin
mctramp16814-Sep-07 17:48
mctramp16814-Sep-07 17:48 
QuestionRecord Audio From Microphone Pin
Indra PR14-Sep-07 15:45
Indra PR14-Sep-07 15:45 
AnswerRe: Record Audio From Microphone Pin
JamesS[C1]25-Sep-07 3:49
JamesS[C1]25-Sep-07 3:49 
AnswerRe: Record Audio From Microphone Pin
Eddy Vluggen6-Nov-09 8:13
professionalEddy Vluggen6-Nov-09 8:13 
QuestionGet Computer Name Using VB6 Pin
Widgets14-Sep-07 15:05
Widgets14-Sep-07 15:05 
AnswerRe: Get Computer Name Using VB6 Pin
nitin314-Sep-07 19:46
nitin314-Sep-07 19:46 
AnswerRe: Get Computer Name Using VB6 Pin
Dave Kreskowiak15-Sep-07 2:34
mveDave Kreskowiak15-Sep-07 2:34 
QuestionThe meaning of the # in VB Pin
Andy20214-Sep-07 11:16
Andy20214-Sep-07 11:16 
AnswerRe: The meaning of the # in VB Pin
Dave Kreskowiak14-Sep-07 12:45
mveDave Kreskowiak14-Sep-07 12:45 
AnswerRe: The meaning of the # in VB Pin
Dave Doknjas14-Sep-07 13:46
Dave Doknjas14-Sep-07 13:46 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.