if statemnets and variables

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

i am using this if statement:

stDateType = Appointmentdate

If Weekday(Appointmentdate, vbMonday) = vbMonday Then
MsgBox "you can only take 5 patients"

i would like to be able to have the user set the number of patients

eg. MsgBox "you can only take", monday variable , "patients"

is this possible to set a variable for the patient numbers?
any help would be great thanks

yours

david
 
DAVIDPEOVER said:
i am using this if statement:

stDateType = Appointmentdate

If Weekday(Appointmentdate, vbMonday) = vbMonday Then
MsgBox "you can only take 5 patients"

for sure:

Dim lgPat as Byte 'If you have not more than 256 Patient otherwise take
Integer
lgPat = Me.NameOfYourPatientFieldinForm 'for example
MsgBox"you can only take " & lgPat & " patients!"

Kai Apel (Berlin)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top