CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com

Search:

Type: Posts; User: thedeathnotes210x

Search: Search took 0.05 seconds.

  1. Re: Export Excel to 2 tables Access ??????

    I have 2 problem in my homework. Firstly, I have convert ID field from AutoNumber to Number. I want to start ID = 1.Because I try to fix it but ID is starting 0. When I insert repeatly the second...
  2. Re: Export Excel to 2 tables Access ??????

    Now I Stuck in FIND Statement because my homework is required if MSSV is update in the first time, the ID Number = 1. Then if MSSV is update the second time, the ID Number = 2 and the Status from...
  3. Re: Export Excel to 2 tables Access ??????

    I can not use UPDATE Statement and I do not know Find Statement is working or not. Because I get the error "Syntax error in UPDATE Statement" .The code is as below:

    Dim ex As New Excel.Application...
  4. Re: Export Excel to 2 tables Access ??????

    I am stuck in Find Statement. You can help me using IF Statement.
    Example : If MSSV is found, you use INSERT Statement

    rs.Open " SELECT * FROM SV where MSSV ='", con, adOpenDynamic,...
  5. Re: Export Excel to 2 tables Access ??????

    con.Execute "INSERT INTO SV(MSSV,MaLop,Ho,Ten,HanhKiem,User,Status,Date) VALUES ( _
    '" & ws.Range("A" & i).Value & "', _
    '" & ws.Range("B" & i).Value & "', _
    '" & ws.Range("D" & i).Value & "', _...
  6. Re: Export Excel to 2 tables Access ??????

    tenUser = tbUser.Text 'the user is logged in
    Ngaygiodangnhap = Format(Now(), "dd/mm/yyyy hh:mm:ss AM/PM") 'Ngaygiodangnhap is date/time where the user is logged in
    con.Execute "INSERT INTO...
  7. Re: Export Excel to 2 tables Access ??????

    My Excel have just 5 value : MSSV,MaLop,TenLop,Ho,Ten,HanhKiem
    My table Access have just 10 value : ID Number, MSSV,MaLop,Ho,Ten,HanhKiem,User,Status,Date.
    I am trying to fix INSERT Statement but...
  8. Re: Export Excel to 2 tables Access ??????

    On Error Resume Next
    Dim ex As New Excel.Application
    Dim wb As Excel.Workbook
    Dim ws As Excel.Worksheet
    Dim i As Long: i = 1
    Dim con As New ADODB.Connection
    Dim con1 As New ADODB.Connection
    ...
  9. Export Excel to 2 tables Access ??????

    I have a problem about INSERT INTO with 2 tables access.
    My Excel file have a few paramater : StudentID, ClassID,ClassName,FirstName,LastName
    My Access have 4 tables : Student, Class,...
Results 1 to 9 of 9





Click Here to Expand Forum to Full Width

Featured