hey i got 2 tables named tbplayer and tbpair in database named dbgame.mdb
tbplayer has 2 field player_id and player_name..
tbpair has three field pair_id(autonumber), player_1 and player_2
i have create combobox to get player id in tbpair from tbpair.. so i don get code.. my sample code is
Imports System.Data Imports System.Data.OleDb Public Class frmAdd_pair Dim con As New OleDbConnection Private Sub bindpair() Dim adp As New OleDbDataAdapter("Select * from tbPair", con) Dim ds As New DataSet adp.Fill(ds, "pair") cmbPlayer_1.DisplayMember = "Player_ID" cmbPlayer_1.ValueMember = "Player_ID" cmbPlayer_1.DataSource = ds.Tables("player") End Sub Private Sub frmAdd_pair_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load con.ConnectionString = "Provider =Microsoft.Jet.OlEDB.4.0; Data Source = |DataDirectory|\dbgame.mdb; Persist Security Info = True;" bindpair() End Sub Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnAdd.Click Dim cmd As New OleDbCommand cmd.Connection = con cmd.CommandType = "Insert into tbPair values ('" + cmbPlayer_1.Text + "', '" + cmbPlayer_2.Text + "')" End Sub Private Sub cmbPlayer_1_SelectedIndexChanged(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles cmbPlayer_1.SelectedIndexChanged cmbPlayer_1.Text = cmbPlayer_1.SelectedValue End Sub End Class
I am wondering if there would be any chance that someone could help me out with this, I am trying to teach myself c++ which i find it really interesting and I came accross this and would love to see how it works so i could do it and learn ...
I have two tables, I will call them first-half and second-half (of the year)
Table: first id jan feb mar apr ----------------------- 2 80 90 70 60 3 50 40 60 30 Table: second id jan feb mar apr ----------------------- 2 50 70 60 90 3 80 60 50 ...
from turtle import * import random def allTriMedian (w=300): speed (0) vertices =  point = turtle.Point(x,y) for i in range (3): x = random.randint(0,300) y = random.randint(0,300) vertices.append(trutle.Point(x,y)) point = turtle.Point(x,y) triangle = turtle.Polygon(vertices) a = triangle.side() b = triangle.side() c = triangle.side() m1 = tirangle.median m2 = triangle.median ...