Option Compare Database

Private Sub Command0_Click()
    Dim db
    Dim rs As Recordset
    Dim str As String
    
    Set db = CurrentDb
    Set rs = db.OpenRecordset("select * From [test]")
    rs.MoveFirst
    str = "all date:"

    If Not rs.EOF Then
        Do While Not rs.EOF
            str = str + ";" + CStr(rs.Fields("addDate"))
            rs.MoveNext
        Loop
    End If
    rs.Close
    
    MsgBox str
End Sub

 

相关文章:

  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
猜你喜欢
  • 2021-12-17
  • 2022-12-23
  • 2021-07-28
  • 2022-12-23
  • 2022-12-23
  • 2021-06-08
  • 2021-07-19
相关资源
相似解决方案