Unfortunately yes, it has to be a word doc. Currently the code I wrote in post #1 works fine for fields from single form, but when it comes to fields from continuous form, I only can get the first record. Probably I should learn some Word VBA!
Well actually, I'm having the same idea in mind but It's not about the idea, it's about the syntax.
How can I position the next record to be in a new line or a new row assuming that I'm populating a table in word.
Is there anyway to populate a word template from a continuous form?
Currently, only one record from the continuous form appears in the word template, which is the the record that has the focus.
I'm using this code
.ActiveDocument.Bookmarks("BookmarkOne").Select
.Selection.Text...
I have a main continuous form, with a continuous subform in its footer.
Is there anyway to hightlight the last selected record in the main form when the subform gets the focus?
Lol, That's "Programming world", I have to get used to it. :o
Now I'm trying to make use of that effective one line of code to generate the key in it's final format.
Probably
UCase(Chr(Asc(Nz(DMax("Letter", "T_M_AutoClaimNo", "GroupType = 'GC'"), 96)) + 1))
You can find my full function in post #1
here's it anyway
Function NewClaimNo(pValue As String, noofClms As Integer, year As Integer) As String
Dim db As Database
Dim LSQL...