Hmmm.
NextJournalNumber = Right("00000" & Trim(str(Val(srec) + 1)), 5)
Since str is not capitalized, maybe it should read CStr since it appears
you are trying to convert a value to a string.
This may also apply to Val(srec) is srec a string you are trying to convert
to a value? I would use CInt(srec) to convert srec to an integer. Also why
do you need the trim function?
NextJournalNumber = Right("00000" & Trim(CStr(CInt(srec) + 1)), 5)
Hal McGee
Engineering Data Manager
Group Engineering - Process and Compliance
Seating Products Group
B/E Aerospace
Winston-Salem, NC
Mylz Kitufu
<[EMAIL PROTECTED]
uk> To
Sent by: [email protected]
AccessDevelopers@ cc
yahoogroups.com
Subject
Re: [AccessDevelopers] Type
12/02/2005 10:41 Mismatch error
AM
Please respond to
AccessDevelopers@
yahoogroups.com
Hi Hal,
Thanks for response but it didn't work. I get the same error message!!
Might the problem be coming from a missing dll?
Godfrey
At 04:57 PM 12/2/2005, you wrote:
>NextJournalNumber = Right("00000" + Trim(str(Val(srec) + 1)), 5)
>Should be
>NextJournalNumber = Right("00000" & Trim(str(Val(srec) + 1)), 5)
>You can't add strings only numbers
---------------------------------------------------------------------------------->
In the end, we will remember not the words of our enemies,
but the silence of our friends - Martin Luther King Jr.
---------------------------------------------------------------------------------->
___________________________________________________________
To help you stay safe and secure online, we've developed the all new Yahoo!
Security Centre. http://uk.security.yahoo.com
Please zip all files prior to uploading to Files section.
SPONSORED LINKS
Microsoft access Microsoft access help Microsoft access
developer database
Microsoft access Microsoft access Microsoft access
training training course programming
YAHOO! GROUPS LINKS
Visit your group "AccessDevelopers" on the web.
To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
------------------------ Yahoo! Groups Sponsor --------------------~-->
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/q7folB/TM
--------------------------------------------------------------------~->
Please zip all files prior to uploading to Files section.
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/AccessDevelopers/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/