Most of our features and services are available only to members, so we encourage you to login or register a new account. Registration is free, fast and simple. You only need to provide a valid email. Being a member you'll gain access to all member forums and features, post a message to ask question or provide answer, and share or find resources related to mobile phones, tablets, computers, game consoles, and multimedia.
All that and more, so what are you waiting for, click the register button and join us now! Ito ang website na ginawa ng pinoy para sa pinoy!
gud eve po sir, sa tingin ko po nagawa ko na po sya, ittanong ko lang po kung wala po bng issue regarding sa normalization if ilalagay ko po lhat ng info sa isang table?? msyado po kc syang marami tulad po nung element name, symbol, group number, classification, etc.. microsoft SQL server management studio po ang gamit namin na DB
slamat po![]()
Mga bossing sino ba may code ng pag read ng sms using AT command with vb or c#(be displayed sa list box or other win form),salamat..
sir, meron ka ba jan ng code na makukuha yung mga network adapters sa device manager?
ok lang siguro sa flat table, para madali.
Pero kung ako ang estudyante, ino-normalize ko nang kaunti,
para naman maipakita sa prof ko, na nai-apply ko ang mga napag-aralan ko.
Pero sa totoong buhay nang programmer,
as much as possible, we do normalization.
ganun po ba sir.. ang tables lang po kc namin sa database namin is username, highscore and element lang wherein dun po namin isstore sa element_table ung information ng every element pra po di na kmi ggamit ng maraming form.. iccall nlng po namin ung every info sa pgclick ng user s bwat element tpos sa isang form lng po cla mgaapear..
tma po ba na isinama nmin ung table ng element information sa database ng username and highscore??
slmat po ulit![]()
Isang database with different tables...?
Opo, tama lang yan,,,, chat mo na lang ako pag may tanong ka
my knives645 ang ym ko
Help nman po!! my error mo kc!![]()
Public Class Form1
Dim cnn As New OleDb.OleDbConnection
Private Sub btnClose_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClose.Click
Me.Close()
End Sub
Private Sub btnClear_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnClear.Click
txtAddress.Text = ""
txtId.Text = ""
txtName.Text = ""
txtPhone.Text = ""
txtId.Tag = ""
Me.btnEdit.Enabled = True
Me.btnAdd.Text = "add"
Me.txtId.Focus()
End Sub
Private Sub RefreshData()
If Not cnn.State = ConnectionState.Open Then
cnn.Open()
End If
Dim da As New OleDb.OleDbDataAdapter("SELECT ID as [ID], " & _
"Name as [Name], Position, Phone, Status, Gender, Address " & _
"FROM info ORDER BY Id", cnn)
Dim dt As New DataTable
da.Fill(dt)
Me.dgvData.DataSource = dt
cnn.Close()
End Sub
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click
Dim cmd As New OleDb.OleDbCommand
If Not cnn.State = ConnectionState.Open Then
cnn.Open()
End If
cmd.Connection = cnn
If Me.txtId.Tag & "" = "" Then
cmd.CommandText = "INSERT INTO info(Id, Name, Position, Phone, Status, Sex, Address) " & _
"VALUES(" & Me.txtId.Text & ",'" & Me.txtName.Text & "','" & _
Me.cboPosition.Text & "','" & Me.txtPhone.Text & "','" & _
Me.cboStatus.Text & "','" & Me.cboSex.Text & "','" & _
Me.txtAddress.Text & "')"
cmd.ExecuteNonQuery()
Else
cmd.CommandText = "UPDATE info " & _
"SET Id=" & Me.txtId.Text & _
", Name='" & Me.txtName.Text & "'" & _
", Position='" & Me.cboPosition.Text & "'" & _
", Phone='" & Me.txtPhone.Text & "'" & _
", Status='" & Me.cboStatus.Text & "'" & _
", Gender='" & Me.cboSex.Text & "'" & _
", Address='" & Me.txtAddress.Text & "'" & _
"WHERE info=" & Me.txtId.Tag
cmd.ExecuteNonQuery()
End If
RefreshData()
Me.btnClear.PerformClick()
cnn.Close()
End Sub
Private Sub Form1_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
cnn = New OleDb.OleDbConnection
cnn.ConnectionString = "Provider=Microsoft.Jet.Oledb.4.0; Data Source=" & Application.StartupPath & "\data.mdb"
Me.RefreshData()
End Sub
Private Sub btnEdit_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnEdit.Click
If Me.dgvData.Rows.Count > 0 Then
If Me.dgvData.SelectedRows.Count > 0 Then
Dim intId As Integer = Me.dgvData.SelectedRows(0).Cells("id").Value
If Not cnn.State = ConnectionState.Open Then
cnn.Open()
End If
Dim da As New OleDb.OleDbDataAdapter("SELECT = FROM info " & _
"WHERE stdid=" & intId, cnn)
Dim dt As New DataTable
da.Fill(dt)
Me.txtId.Text = intId
Me.txtName.Text = dt.Rows(0).Item("Name")
Me.cboPosition.Text = dt.Rows(0).Item("Position")
Me.txtPhone.Text = dt.Rows(0).Item("Phone")
Me.cboStatus.Text = dt.Rows(0).Item("Status")
Me.cboSex.Text = dt.Rows(0).Item("Sex")
Me.txtAddress.Text = dt.Rows(0).Item("Address")
Me.txtId.Tag = intId
Me.btnAdd.Text = "Update"
Me.btnEdit.Enabled = False
cnn.Close()
End If
End If
End Sub
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnDelete.Click
If Me.dgvData.Rows.Count > 0 Then
If Me.dgvData.SelectedRows.Count > 0 Then
Dim intId As Integer = Me.dgvData.SelectedRows(0).Cells("id").Value
If Not cnn.State = ConnectionState.Open Then
cnn.Open()
End If
Dim cmd As New OleDb.OleDbCommand
cmd.Connection = cnn
cmd.CommandText = "DELETE FROM info WHERE Id" & intId
cmd.ExecuteNonQuery()
Me.RefreshData()
cnn.Close()
End If
End If
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
End Sub
End Class
eto po ung design ko
![]()
Help nman po!! my error mo kc!![]()