MergeAllWord ("select * from PelayanJemaat Where TahunPel= " &
lngMergeYear")
The above has a extra "quote" at the end....does the above even compile??
Remote the last trailing quote you have right after LngMergeYear" <--
remote quote.
eg:
MergeAllWord "select * from PelayanJemaat Where TahunPel= " &
lngMergeYear"
Note that if TahunPel a text type field, then you need the following with
quotes (check in the table design mode if TahanPel is number or text).
If it is a text field, then you need to surround the sql with quotes...
eg:
MergeAllWord "select * from PelayanJemaat
Where TahunPel= '" & lngMergeYear & "'"
Watch for word wrapping in the above...they should be on one line....

Signature
Albert D. Kallal (Access MVP)
Edmonton, Alberta Canada
pleaseNOOSpamKallal@msn.com
Frank Situmorang - 02 Apr 2008 11:19 GMT
I have checked it Albert, the field is a number type, not a text.
So what should I do , There should be no double quote?

Signature
H. Frank Situmorang
> MergeAllWord ("select * from PelayanJemaat Where TahunPel= " &
> lngMergeYear")
[quoted text clipped - 20 lines]
>
> Watch for word wrapping in the above...they should be on one line....
Frank Situmorang - 02 Apr 2008 12:04 GMT
Thanks very much Albert it works perfectly now. Your help is greatful.

Signature
H. Frank Situmorang
> MergeAllWord ("select * from PelayanJemaat Where TahunPel= " &
> lngMergeYear")
[quoted text clipped - 20 lines]
>
> Watch for word wrapping in the above...they should be on one line....