| | |
Bookmarks
Thread Solved |
•
•
Join Date: Feb 2009
Posts: 35
Reputation:
Solved Threads: 0
How can i print values on the word document from access table,there are more than 1 records for a single person
Here recordcount holds 4 values,bt it is not beng printed on the word doc,it is coming out of the procedure
Please help
Here recordcount holds 4 values,bt it is not beng printed on the word doc,it is coming out of the procedure
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
If rs.RecordCount <> 0 Then If Not IsNull(rs!Name) Then WordDocument.Edit "Nm" strEntr = rs!Name strEntr = AppWord.set_Mixcase(strEntr) WordDocument.Insert strEntr End If If Not IsNull(rs!BANK) Then WordDocument.Edit "BnkNm" strEntr = rs!BANK strEntr = AppWord.set_Mixcase(strEntr) WordDocument.Insert strEntr End If End If
Last edited by Ancient Dragon; Mar 23rd, 2009 at 8:22 am. Reason: add code tags
How 'Bout using code tags, and reading the office tutorial?
http://www.daniweb.com/tutorials/tutorial51307.html
http://www.daniweb.com/tutorials/tutorial51307.html
•
•
Join Date: Feb 2009
Posts: 35
Reputation:
Solved Threads: 0
yes rs.recordcount is correct,bt at this line,it is comin out of the procedure
strEntr = AppWord.set_Mixcase(strEntr)
although strEntr is holding the correct value
It is not going to Mixcase procedure,bt whn i am using textbox,values are being printed just fine.This is the code I used for textbox:
If txtName.Text <> "" Then
WordDocument.Edit "Nm"
Selection.Text = txtName.Text
strEntr = Selection.Text
strEntr = AppWord.set_Mixcase(strEntr)
WordDocument.Insert strEntr
End If
Please help,how can i print all the values which are there in the table corresponding to the PSno.....
strEntr = AppWord.set_Mixcase(strEntr)
although strEntr is holding the correct value
It is not going to Mixcase procedure,bt whn i am using textbox,values are being printed just fine.This is the code I used for textbox:
If txtName.Text <> "" Then
WordDocument.Edit "Nm"
Selection.Text = txtName.Text
strEntr = Selection.Text
strEntr = AppWord.set_Mixcase(strEntr)
WordDocument.Insert strEntr
End If
Please help,how can i print all the values which are there in the table corresponding to the PSno.....
![]() |
Similar Threads
- How do you import bookmarks into Safari? The imported bookmarks is a HTML file (Mac Software)
- How to Create BookMarks in ASP.Net (ASP.NET)
- bookmarks don't work in Firefox??? (on bar) (Web Browsers)
- Firefox missing bookmarks after crash! Need desperate help! (Web Browsers)
- "add this site to your bookmarks" in firefox (JavaScript / DHTML / AJAX)
- Open all bookmarks in tabs? (Web Browsers)
- bookmarks (Community Introductions)
- Firefox Bookmarks (Web Browsers)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: crystal report printer choose. posible?
- Next Thread: TXT Read
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows






