访问Visual Basic [英] Access Visual Basic

查看:65
本文介绍了访问Visual Basic的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨 - 我正在尝试编写After_Update()。 目标是确保用户输入付款期的正确日期。 如果度假的工资期为4/1/201 - 2010年4月15日,则所使用的休假日期条目无法读取4/1/2011或4 / 16.2010。 
这是我到目前为止:

Hi -- I am trying to code After_Update().  The goal is to ensure the user enters the correct date for the pay period.  If a pay period for vacation is 4/1/201 - 4/15/2010 then an entry in vacation date used cannot read 4/1/2011 or 4/16.2010.  This is what I have so far:

Private Sub Combo80_AfterUpdate()

如果年份((Me。[假期日期1])<年(Me.PAY_PERIOD_STARTING)或(我。[假期日期1])>(Me.PAY_PERIOD_STARTING)或年份(Me.PAY_PERIOD_ENDING))然后

MsgBox"时间不在当前支付期间" ;

结束如果

结束子

Private Sub Combo80_AfterUpdate()
If Year((Me.[Vacation Date Used1]) < Year(Me.PAY_PERIOD_STARTING) Or (Me.[Vacation Date Used1]) > (Me.PAY_PERIOD_STARTING) Or Year(Me.PAY_PERIOD_ENDING)) Then
MsgBox "Time Taken not in current pay period"
End If
End Sub

推荐答案

ACCESS和其他Microsoft Office产品中的VB称为

The VB in ACCESS and other Microsoft Office products is known as

VBA = Visual Basic for Applications。

VBA = Visual Basic for Applications.

请尝试其中一个论坛;

Please try one of these forums;

 

 

  ;

此论坛通常用于VB.Net问题。

This forum is 'usually' intended for VB.Net questions.


这篇关于访问Visual Basic的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆