以文本方式查看主题

-  Foxtable(狐表)  (http://www.foxtable.com/bbs/index.asp)
--  专家坐堂  (http://www.foxtable.com/bbs/list.asp?boardid=2)
----  [求助]窗口控件问题求教  (http://www.foxtable.com/bbs/dispbbs.asp?boardid=2&id=116663)

--  作者:咿呀呀2018
--  发布时间:2018/3/29 8:35:00
--  [求助]窗口控件问题求教
窗口中点击一个bottom控件,点击后,要实现一个textbox内输入使用者名称,一个textbox输入点击的时间,我在bottom控件设置click事件代码
With Forms("缺陷单").Controls("接单人")
    If .Value Is Nothing Then
      e.Sender.SelectedText = User.name
Else 
    Messagebox.Show("已接单!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    End If
End With
预览后提示:未找到类型“Button”的公共成员“SelectedText”。
求帮助修改程序,还有点击显示的时间的代码怎么写啊???

--  作者:有点甜
--  发布时间:2018/3/29 8:56:00
--  
With Forms("缺陷单").Controls("接单人")
    If .text = Nothing Then
      .Text = User.name
Else 
    Messagebox.Show("已接单!","提示",MessageBoxButtons.OK,MessageBoxIcon.Information)
    End If
End With