DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = DB Error: 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 2

SELECT * FROM `user` the_table WHERE the_table.userid = How do you print from a list box in visual basic 6? - iTechForums
Login
Search
Welcome to the iTechForums.
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.
To register now click here.
Latest Threads
Advertisements
Forum Statistics
Threads:
Posts: 2
Members:
Number of Users Online:
Welcome to our newest member,
Reply
 
Thread Tools Display Modes
  #1  
Old 05-06-2008, 05:41 PM
ste360 ste360 is offline
Junior Member
 
Join Date: May 2008
Posts: 2
Default

How do you print from a list box in visual basic 6?


Can someone give me an example of how to print from 2 list boxes having them side by side, im not too familiar with visual basic.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2  
Old 05-06-2008, 06:10 PM
GrahamH GrahamH is offline
Junior Member
 
Join Date: May 2008
Posts: 5
Default

Following assumes the same number of items in each list

k = List1.listcount
For n = 1 to k
Printer.Print Tab(x); List1.List(n);
Printer.Print Tab(y); List2.List(n)
Next n

x and y are for where you want to position the items on output. Put in your own values
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Your Ad Here

All times are GMT. The time now is 03:33 AM.