cmd.ConnectionName = "数据源" cmd.CommandText = "SELECT * From {用户表} Where [用户] = '" & _UserName & "'" dt = cmd.ExecuteReader If dt.DataRows.Count > 0 Then Dim Proc As New Process '定义一个新的Process Proc.File = "tencent://message/?uin=" & dt.Datarows(0)("QQ号") Proc.Start()