alexander1s's Profile User Rating: -----

Reputation: 0 Apprentice
Group:
New Members
Active Posts:
15 (0.02 per day)
Joined:
25-January 12
Profile Views:
820
Last Active:
User is offline Jul 21 2012 07:57 PM
Currently:
Offline

Previous Fields

Dream Kudos:
0
Icon   alexander1s has not set their status

Posts I've Made

  1. In Topic: Using Access database Linked to visual basic

    Posted 19 Jul 2012

    I would like some help and advice.
  2. In Topic: Using Access database Linked to visual basic

    Posted 18 Jul 2012

    U have to run the program outside of visual basic in order o add data to acces

    Yes since I don't have a lot time
  3. In Topic: Using Access database Linked to visual basic

    Posted 18 Jul 2012

    Ye I use the connection wizard and the password is admin

    I really need your help
  4. In Topic: Using Access database Linked to visual basic

    Posted 18 Jul 2012

    Here is my code for the addForm
    Public Class AddStudents
    
        ' Dim query = "Select MAX(Num) from Records"
     
    
    
        Private Sub mnuFileClose_Click(sender As System.Object, e As System.EventArgs) Handles mnuFileClose.Click
            Me.Close()
    
        End Sub
    
        Private Sub RecordsBindingNavigatorSaveItem_Click(sender As System.Object, e As System.EventArgs)
            Me.Validate()
            Me.RecordsBindingSource.EndEdit()
            Me.TableAdapterManager.UpdateAll(Me.AllRecordsDataSet)
    
        End Sub
    
        Private Sub AddStudents_Load(sender As System.Object, e As System.EventArgs) Handles MyBase.Load
            'TODO: This line of code loads data into the 'AllRecordsDataSet.Records' table. You can move, or remove it, as needed.
            'Me.RecordsTableAdapter.Fill(Me.AllRecordsDataSet.Records)
            Me.RecordsBindingSource.AddNew()
            DateDateTimePicker.Value = Today()
            NumTextBox.Focus()
    
        End Sub
    
        Private Sub btnAdd_Click(sender As System.Object, e As System.EventArgs) Handles btnAdd.Click
    
    
    
            Try
    
                Me.RecordsBindingSource.AddNew()
    
                Me.RecordsTableAdapter.Update(AllRecordsDataSet.Records)
    
                IDTextBox.Clear()
                FirstNameTextBox.Clear()
                LastNameTextBox.Clear()
                CommentsTextBox.Clear()
                DateDateTimePicker.Value = Today()
                NumTextBox.Clear()
                NumTextBox.Focus()
    
    
    
                ' OffenseCheckBox.Text = String.Empty
                FafricationCheckBox.Checked = False
                CopyWorkCheckBox.Checked = False
                PlagiarismCheckBox.Checked = False
                OtherCheckBox.Checked = False
                NumTextBox.Focus()
    
            Catch ex As Exception
                MessageBox.Show("Nothing to save")
            End Try
        End Sub
    
        Private Sub mnuFileSave_Click(sender As System.Object, e As System.EventArgs) Handles mnuFileSave.Click
            Try
                Me.RecordsBindingSource.EndEdit()
                Me.RecordsTableAdapter.Update(AllRecordsDataSet.Records)
                Me.Close()
    
            Catch ex As Exception
                MessageBox.Show("Nothing save")
    
            End Try
        End Sub
    
    End Class
    
  5. In Topic: Using Access database Linked to visual basic

    Posted 18 Jul 2012

    In my Form I have the Num [textbox] which i want to increase the Num[textbox] everytime i add a new record.

    i also have an ID[idtextbox] for example, if i enter three times the same ID, a message box should display saying the ID has been entering three times already, therefore it can not be enter anymore .

    in my program i used the data source configuration wizard , using database then dataset, and i choose the new connection which is the database file.

My Information

Member Title:
New D.I.C Head
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:

Contact Information

E-mail:
Private

Friends

alexander1s hasn't added any friends yet.

Comments

alexander1s has no profile comments yet. Why not say hello?