Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-21-2004, 12:48 PM   #1 (permalink)
patelk
Registered User
 
Join Date: Oct 2004
Posts: 3
patelk is on a distinguished road
Question If....then statements and columns using tables

below is the code i am working with and i am trying to make columns but
i am using a table. i am counting 11 problems from the database and
once i hit 11 i want to go to the 3rd column and start wrting the rest
of the problems but i cant seem to firgure out how to do that if even
if that is possilbe. right now the code types the problem up to 11
correctly but once it hits 13 it moves right to and starts typing the
problem in that cell but i want it to go to the top of the table but
use columns 3 and 4. Column 3 would put the problem and Column 4 would
put the count of the problem....Do i make any sense if so any ideas on
how to fix this?


problem_count = 0
Do While Not rs.EOF
problem_count = problem_count + 1
If problem_count = 11 Then
.MoveRight unit:=wdCell
.MoveRight unit:=wdCell
.MoveStart
Else
.TypeBackspace
.TypeText Text:=rs("timewhy")
.MoveRight unit:=wdCell
.TypeText Text:=rs("expr1")
.MoveRight unit:=wdCell
.MoveRight unit:=wdCell
.MoveRight unit:=wdCell
rs.MoveNext
End If
Loop

Any suggestions or examples would help alot. thanks

Last edited by patelk; 12-22-2004 at 06:26 AM.
patelk is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Help on MySQL Statements infinite_root Everything SQL ( MySQL, MSSQL, DB2, Postgre, Oracle, etc...) 5 04-21-2005 05:37 PM
Brain Melting: Trouble With If Statements..... UnusualGameBoy Java 3 10-27-2004 02:10 PM
If statements abc123 Java 8 09-19-2002 01:17 PM


All times are GMT -8. The time now is 07:07 PM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting