Results 1 to 2 of 2

Thread: Line breake

  1. #1

    Thread Starter
    Hyperactive Member samsyl's Avatar
    Join Date
    Jun 2001
    Location
    London
    Posts
    338

    Line breake

    I am successfully writen data in word document from access table using loop. But There is no line (row / record) breake. Like:

    name city name city name city

    I want to write above line like this:

    name city
    name city
    name city

    here is my code:

    rs.Open ("SELECT * FROM temcash"), db
    Do Until rs.EOF
    com1 = rs.Fields("name")
    com2 = rs.Fields("city")

    Call RepPara("com1", com1)
    Call RepPara("com2", com2)

    rs.movenext
    loop

    Please help me.

  2. #2
    Hyperactive Member
    Join Date
    Jul 2001
    Location
    FL
    Posts
    258
    Add a vbCrLf to your variable, like this...
    VB Code:
    1. com1 = rs.Fields("name")  & vbCrLf

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width