Contact US

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

if syntax error

if syntax error

if syntax error

could tell me what is the syntax error in the below.
thanks in advance.

if MyScreen.SendKeys("F"CurrentMonthName "<ENTER>")

RE: if syntax error

then missing. sorry i realized. thanks  

RE: if syntax error

i am trying to check if this month  do something or lastmonth do somehting
this is the code i provide here. but when i have messagbox here it is not displaying anything
x = MyScreen.SendKeys("F CurrentMonthName <ENTER>")
MsgBox x
if x then
 Call Found
elseif  MyScreen.SendKeys("F LastMonthEnd <ENTER>") then
  if strEOFerrormsg = "End of data reached" or strEOFerrormsg = "Scroll at maximum  " then
   Call Endpgm
  Call Found
  end if
  End if
End if
End Sub

RE: if syntax error



x = MyScreen.SendKeys("F CurrentMonthName <ENTER>")
is sending LITERALLY... F CurrentMonthName

I believe that you want to send F Jan


glassesDon't let the Diatribe...
talk you to death!tongue

glassesJust traded in my old subtlety...
for a NUANCE!tongue

RE: if syntax error


thansk Skip
i am trying to have last month
this functionhas given 1
i need to have month MMM ie jan

Month(DateSerial(1, Month(Now), 1)) - 1
how do it do it.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close