<?xml version="1.0" encoding="utf-8"?>
<!-- If you are running a bot please visit this policy page outlining rules you must respect. https://www.livejournal.com/bots/ -->
<feed xmlns="http://www.w3.org/2005/Atom" xmlns:lj="https://www.livejournal.com">
  <id>urn:lj:livejournal.com:atom1:visualbasic</id>
  <title>Visual Basic Community</title>
  <subtitle>Visual Basic Community</subtitle>
  <author>
    <name>Visual Basic Community</name>
  </author>
  <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/"/>
  <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom"/>
  <updated>2006-05-18T15:11:15Z</updated>
  <lj:journal userid="645024" username="visualbasic" type="community"/>
  <link rel="service.feed" type="application/x.atom+xml" href="https://visualbasic.livejournal.com/data/atom" title="Visual Basic Community"/>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:10922</id>
    <author>
      <name>Alli</name>
    </author>
    <lj:poster user="igz00" userid="469745"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/10922.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=10922"/>
    <title>VB 6.0 Data Environments/Reports</title>
    <published>2006-05-18T15:11:15Z</published>
    <updated>2006-05-18T15:11:15Z</updated>
    <content type="html">I'm using VB 6 with an Access Database (I know... I know...) and I'm trying to get it to generate a report based on user selected criteria.&lt;br /&gt;&lt;br /&gt;Basically my database is full of contacts that can be involved in my company's programs.  The user should be able to select a program from a dropdown and then print a report of all the contacts participating in that program.&lt;br /&gt;&lt;br /&gt;I've been able to make it print every contact in every program, but not for a specific program only&lt;br /&gt;&lt;br /&gt;Thoughts?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:10622</id>
    <author>
      <name>Russell Archey</name>
    </author>
    <lj:poster user="neoscyther" userid="423381"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/10622.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=10622"/>
    <title>New To Community</title>
    <published>2006-05-04T17:11:11Z</published>
    <updated>2006-05-04T17:11:11Z</updated>
    <content type="html">Hey everyone.  I'm new to this community, but I've been working with VB 6.0 for a few years now, but haven't done much with database programming.  I'm working on a program that will allow a user to create and save databases, as well as switch between them whenever the user wants.  I can switch the databases no problem...though it may not be the most effective way to do it (when a user clicks on a particular button, an Open dialogue box appears, they choose the database they want, the file name gets passed into a Global Variable, a Global Function is called, the original form is unloaded, then reloaded [via the global function] with the file name set to the data controls DatabaseName property).&lt;br /&gt;&lt;br /&gt;Again, may not be the most effective way to do it, but it works.  Now, since apparently databases within VB save on their own, I don't have to worry about a user clicking a "Save" button, but I do need the ability to let the user create a new database.  This is where I'm hitting a snag, and none of my books seem to help...unless I'm really dense and just missing it.&lt;br /&gt;&lt;br /&gt;Any help would be greatly appriciated.  Thanks.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:10160</id>
    <author>
      <name>Sharon Edmonds</name>
    </author>
    <lj:poster user="sharonme" userid="7937112"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/10160.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=10160"/>
    <title>please help!</title>
    <published>2005-08-17T20:57:10Z</published>
    <updated>2005-08-17T20:59:16Z</updated>
    <content type="html">Hi. I'm trying to "beef up" one of the Access general templates for use, and I'm running into a problem.&lt;br /&gt;&lt;br /&gt;I'm using the "Contacts Management" template, and have added a field "ReferredBy" to the Contacts table. I was wanting to add this as a search item on the "Report Date Range" form, so that I can have a report organized not only by date but grouped by ReferredBy.&lt;br /&gt;&lt;br /&gt;I hope this makes sense, I am experienced with Access but not very experienced with Visual Basic. I've done a ton with MySQL, and thought this would be related. I guess I'm wrong... ;-)&lt;br /&gt;&lt;br /&gt;I've been able to add the ReferredBy to the Report Date Range form. However, I get an error:&lt;br /&gt;&lt;br /&gt;&lt;font face="courier" color="blue"&gt;Run-time error '2465': Microsoft Access cannot find the field "|" referred to in your expression.&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;The VBA for the Report Date Range looks like this:&lt;br /&gt;&lt;br /&gt;&lt;font face="courier" color="blue"&gt;Private Sub Form_Open(Cancel As Integer)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Me.Caption = Me.OpenArgs&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Me![Referred By] = [ReferredBy]&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Me![Beginning Call Date] = Date - Weekday(Date, 2) + 1&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Me![Ending Call Date] = Me![Beginning Call Date] + 6&lt;br /&gt;End Sub&lt;/font&gt;&lt;br /&gt;&lt;br /&gt;Everything works fine when I don't have the "Referredby" line in there, but it does nothing with that item... The way the code is now, it seems circular, but my brain can't figure out how to fix it.&lt;br /&gt;&lt;br /&gt;Please help.  I am so frustrated and just looking for a little help, even just where I need to go to get help.&lt;br /&gt;&lt;br /&gt;Thank you!&lt;a name='cutid1-end'&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;x-post in &lt;span  class="ljuser  i-ljuser  i-ljuser-deleted  i-ljuser-type-P     "  data-ljuser="sharonme" lj:user="sharonme" &gt;&lt;a href="https://sharonme.livejournal.com/profile/"  target="_self"  class="i-ljuser-profile" &gt;&lt;img  class="i-ljuser-userhead"  src="https://l-stat.livejournal.net/img/userinfo_v8.png?v=17080&amp;v=924" /&gt;&lt;/a&gt;&lt;a href="https://sharonme.livejournal.com/" class="i-ljuser-username"   target="_self"   &gt;&lt;b&gt;sharonme&lt;/b&gt;&lt;/a&gt;&lt;/span&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:9723</id>
    <author>
      <name>sontek</name>
    </author>
    <lj:poster user="sontek" userid="3032943"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/9723.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=9723"/>
    <title>algorithm</title>
    <published>2004-11-05T02:28:40Z</published>
    <updated>2004-11-05T02:28:40Z</updated>
    <content type="html">S(n)/(1 - (1 + r)^-n)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I'm writing this loan code and thats the equation that has to be calculate.. I just don't understand how I would do it. Math is a struggle for me. p = rSn(subscript n) / 1 - (1 + r)-n (to the negative n or something like that)&lt;br /&gt;&lt;br /&gt;&lt;a target='_blank' href='http://www.sontek.net/equ.jpg' rel='nofollow'&gt;http://www.sontek.net/equ.jpg&lt;/a&gt; is a picture of what the equation looks like.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I'm doing the code in Visual Basic.. I have everything setup I just don't know how to setup the equation in the code (I don't know that much math so that equation makes no sense to me at all)&lt;br /&gt;&lt;br /&gt;p - is an equal periodic (monthly) payment&lt;br /&gt;r - is interest rate stated as an annual interest rate&lt;br /&gt;n - is the number of monthly payments over the life of the loan&lt;br /&gt;Sn - is the amount of the loan&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is what I tried doing.. But its overflowing.. so if anyone has any ideas let me know&lt;br /&gt;&lt;br /&gt;answer = ammount * (number) / (1 - (1 + interest) ^ number)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:9292</id>
    <author>
      <name>Brian Thomas Haase</name>
    </author>
    <lj:poster user="cyber_aeon" userid="1440477"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/9292.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=9292"/>
    <title>Inno Setup Toolbar 1.0</title>
    <published>2004-08-06T10:07:35Z</published>
    <updated>2004-08-06T10:07:35Z</updated>
    <content type="html">&lt;center&gt;&lt;a href="http://finalstand.archsysinc.com/files/InnoToolbar/setup.exe" target="_blank" rel="nofollow"&gt;&lt;img border="0" src="https://imgprx.livejournal.net/f450a452a47d4ae39af37fb3ef6585def188917b0f095ca3d64a20dcac10ce6f/P2WlxyVijxKvg29v9M5QVEMdsf-ah7h02UeMRr5Am9Hd91bVh8KtG1M1CUl0UE5-uw1TlTHbcExsE1wDqRc080QOmTjcO_uE6FRDrB51ZBXlFaGE:gr-l51DVJWqe885Byg32ew" fetchpriority="high"&gt;&lt;/a&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;Yet another application. This time, it's a Visual Basic IDE Add-in.&lt;br /&gt;&lt;br /&gt;Its purpose is to connect to the freeware program called 'Inno Setup', an installation builder for application deployment. Your looking at the screenshot for version 1.0, that took about a day to design and implement - I was a bit surprised at how fast it went together. The main add-in consists of the three buttons viewed above, on a floating toolbar. The toolbar can be docked anywhere in the interface, and remain in its place even after you exit the program and restart it. &lt;br /&gt;&lt;br /&gt;The three buttons work as follows:&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Script Editor&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Creates a default script with the project name plus .ISS, the default script extension, in your project directory. (IE: Project1.iss) It also adds the basic requirements to compile the setup script. After creating the script, the Inno Setup Editor is launched, allowing you to edit and maintain the script.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Compile Script&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Starts the Inno Setup Compiler to run the script in the project directory. So basically, once your done writing the script in the script editor, you can - at any time - hit the 'Compile Script' button to repackage your application and prepare it for distribution and deployement. Obviously, this is the useful part.&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;u&gt;Configure Toolbar&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;Brings up the lower window featured in the screenshot, so you can configure the program settings. All settings are stored in the registry, so it will always remember them. Normally, the toolbar will automatically locate the installation directory for Inno, but if for some reason it cannot or is finding the wrong version, you can force it to a different path from here.&lt;br /&gt;&lt;br /&gt;Pretty swanky, huh. &lt;br /&gt;&lt;br /&gt;&lt;hr size="1"&gt;&lt;br /&gt;&lt;b&gt;Source Code for Toolbar Add-In:&lt;/b&gt;&lt;br /&gt;&lt;a target='_blank' href='http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=55397&amp;lngWId=1' rel='nofollow'&gt;http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=55397&amp;lngWId=1&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Quick and Easy Installer for Toolbar Add-In:&lt;/b&gt;&lt;br /&gt;&lt;a target='_blank' href='http://finalstand.archsysinc.com/files/InnoToolbar/setup.exe' rel='nofollow'&gt;http://finalstand.archsysinc.com/files/InnoToolbar/setup.exe&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;Inno Setup Homepage:&lt;/b&gt;&lt;br /&gt;&lt;a target='_blank' href='http://www.jrsoftware.org/isinfo.php' rel='nofollow'&gt;http://www.jrsoftware.org/isinfo.php&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Enjoy, and make sure to send any suggestions along to me.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:9152</id>
    <author>
      <name>Yahel Carmon</name>
    </author>
    <lj:poster user="shinedarklight" userid="697345"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/9152.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=9152"/>
    <title>visualbasic @ 2004-07-19T14:45:00</title>
    <published>2004-07-19T11:43:24Z</published>
    <updated>2004-07-19T11:43:24Z</updated>
    <content type="html">Microsoft Outlook has a type of list called Distribution Lists, but Outlook doesnt have any option to export into CSVs. Conventional wisdom says that this type of work is best left to visual baisc...but, I only know a tiny bit of Java, so does anyone have the heart to write me a conversion program? I know its a lot to ask, but I'm sure it cant be difficult. (or, could someone suggest a different option?)&lt;br /&gt;&lt;br /&gt;thanks in advance...</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:8904</id>
    <author>
      <name>Blue</name>
    </author>
    <lj:poster user="ghostflight" userid="2001774"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/8904.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=8904"/>
    <title>Hardcore Visual Basic by Bruce McKinney</title>
    <published>2004-07-17T08:53:49Z</published>
    <updated>2004-07-17T08:53:49Z</updated>
    <content type="html">An online version of the book at &lt;a href="http://www.mvps.org/vb/hardcore/" target="_blank"&gt;http://www.mvps.org/vb/hardcore&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:8553</id>
    <author>
      <name>Kevin</name>
    </author>
    <lj:poster user="streetfiighter" userid="742886"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/8553.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=8553"/>
    <title>NEED HELP!</title>
    <published>2004-07-17T01:29:46Z</published>
    <updated>2004-07-17T01:29:46Z</updated>
    <content type="html">Ok i have an array with 75 elements called balls(74), for an automated bingo program.&lt;br /&gt;The trouble is I am having a hell of a time randomizing the array so it does not have any visible pattern&lt;br /&gt;(ie. 3 Bs in a row, which the odd are like 1 in 125 of normally happening, yet i get patterns like that occuring every game)&lt;br /&gt;&lt;br /&gt;here is what im working with...&lt;br /&gt;        Randomize()&lt;br /&gt;&lt;br /&gt;Dim i As Integer&lt;br /&gt;Dim j As Integer&lt;br /&gt;Dim tmp_value As String&lt;br /&gt;&lt;br /&gt;For i = 0 To 74&lt;br /&gt;j = Int((74 - i + 1) * Rnd() + i) 'finds random place in array&lt;br /&gt;tmp_value = balls(i)              'assigns current position&lt;br /&gt;balls(i) = balls(j)               'replaces current position&lt;br /&gt;balls(j) = tmp_value              'assigned original position to replacement's index&lt;br /&gt;Next i&lt;br /&gt;&lt;br /&gt;any help would be appreciated</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:7915</id>
    <author>
      <name>Blue</name>
    </author>
    <lj:poster user="ghostflight" userid="2001774"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/7915.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=7915"/>
    <title>Hi n all that jam....</title>
    <published>2004-06-26T06:35:02Z</published>
    <updated>2004-06-26T06:35:02Z</updated>
    <content type="html">Hi folks just joined, been mean to look for a VB community for a while but just found it a whole lot easier now I've got a paid account :)&lt;br /&gt;&lt;br /&gt;I'm currently a VB / SQL server developer so if I can help any of you guys out let me know, 'cos I'm sure gonna be posting and asking for help as soon as I get something interesting to do at work :)&lt;br /&gt;&lt;br /&gt;Ghosty.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:7438</id>
    <author>
      <name>blacqua</name>
    </author>
    <lj:poster user="bellaqua" userid="2465555"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/7438.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=7438"/>
    <title>addendum</title>
    <published>2004-06-17T04:33:03Z</published>
    <updated>2004-06-17T04:33:03Z</updated>
    <content type="html">weeeell no response so i guess y'all didnt have time to work it out or this wasnt the right place to ask. &lt;br /&gt;&lt;br /&gt;But that's okay!&lt;br /&gt;&lt;br /&gt;A friend emailed me a lovely little program which does exactly what I asked for - if anyone else would like to receive it (basically it's a web page with a bit of code behind it - you create a sub folder to your personal outlook calendar, set the page as the homepage and it works it all out for you) I'm happy to share.&lt;br /&gt;&lt;br /&gt;Email tumblehometumtum@hotmail.com and I'll send it over&lt;br /&gt;&lt;br /&gt;xxx</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:7314</id>
    <author>
      <name>blacqua</name>
    </author>
    <lj:poster user="bellaqua" userid="2465555"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/7314.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=7314"/>
    <title>help with programming Outlook</title>
    <published>2004-06-14T07:42:41Z</published>
    <updated>2004-06-14T07:42:41Z</updated>
    <content type="html">My question is really an outlook one, which uses VBScript - and I've looked on MSN, and in books, but there's woefully little knowledge around outlook that i can get my hands on..!&lt;br /&gt;&lt;br /&gt;I know this isn't strictly VB - but outlook uses VBScript &amp; I'm finding it hard to get help elsewhere.  if anyone can help I'll be soooo grateful...&lt;br /&gt;&lt;br /&gt;Basically What I want to do is this:&lt;br /&gt;&lt;br /&gt;I work in an office which has about 10 users on our server.  I want to create a calendar folder in outlook, in the public folders list, called staff calendar, and write macro or a bit of code so that every time a member of staff puts an 'away from the office' meeting in their own calendar, it 'invites' the staff calendar.  &lt;br /&gt;&lt;br /&gt;If you have any other (simpler?) suggestion for how to create a calendar showing where users are when out of the office in an amalgamated way I'd be very happy to hear it!&lt;br /&gt;&lt;br /&gt;I'm inexperienced with VB but know enough to paste code in to the right place..&lt;br /&gt;&lt;br /&gt;If this is not your area of expertise/too much work please feel free to ignore this request - I'm asking entirely on the offchance.&lt;br /&gt;&lt;br /&gt;Many thanks&lt;br /&gt;&lt;br /&gt;Bella x</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:7096</id>
    <author>
      <name>USSR</name>
    </author>
    <lj:poster user="121142" userid="2567510"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/7096.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=7096"/>
    <title>Somebody help please!</title>
    <published>2004-05-27T07:35:08Z</published>
    <updated>2004-05-27T07:35:08Z</updated>
    <content type="html">Hello!&lt;br /&gt;I have a some &lt;a href="http://gosha.hs.orc.ru/db1.zip" target="_blank" rel="nofollow"&gt;MS Access data base&lt;/a&gt; project, but I'm not a programmer and dont know howto I can create form. If somebody&lt;br /&gt;have a 10 minutes and can help, please knock to my ICQ 121142, and I say, what need do. Thank You!!!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:6782</id>
    <author>
      <name>Sherm</name>
    </author>
    <lj:poster user="purpig" userid="484358"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/6782.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=6782"/>
    <title>visualbasic @ 2004-05-16T23:35:00</title>
    <published>2004-05-16T20:36:39Z</published>
    <updated>2004-05-16T20:36:39Z</updated>
    <content type="html">Has anyone used the calendar control in .NET? I would like to use the control to show ONLY the days of the current month, and not the trailing and leading days of the surrounding months. The calendar used in LJ only shows the current month's days, but I know that's not written in .NET. Any ideas, or do I have to write my own control?&lt;br /&gt;&lt;br /&gt;Thanks. :)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:6649</id>
    <author>
      <name>novasurf</name>
    </author>
    <lj:poster user="camy" userid="80257"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/6649.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=6649"/>
    <title>MS Excel 2000 Macro</title>
    <published>2004-04-04T21:51:37Z</published>
    <updated>2004-04-04T21:51:37Z</updated>
    <content type="html">Would there be anyone out there who has any knowledge of Macros in Excel?&lt;br /&gt;&lt;br /&gt;I need to come up with a very simple Macro.&lt;br /&gt;Basically, I have 2 worksheets in 1 file. The first worksheet is a database of names, identification numbers, addresses, blah, blah, blah.&lt;br /&gt;&lt;br /&gt;So in my 2nd worksheet, I want the Macro to display the name and contact number of the person when I key in the identification number. Simple right?&lt;br /&gt;&lt;br /&gt;Comment on this and I'll probably give you my email address or something.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:6316</id>
    <author>
      <name>Eight thumbs up, said the octopus with human hands</name>
    </author>
    <lj:poster user="somnambulist" userid="4041"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/6316.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=6316"/>
    <title>newbie</title>
    <published>2004-02-25T06:37:42Z</published>
    <updated>2004-02-25T06:37:42Z</updated>
    <content type="html">HELP ME! I am stuck with this and my brain has turned to mush!&lt;br /&gt;&lt;br /&gt;I want the start, pause and exit buttons to do as they are meant to. I also need the left and right buttons to be activated by keystrokes (eg pressing z = left, pressing  x = right) I also want to be able to have a points system, where if the "ball" hits the top of the playing area then 1 is added to the score. i.e. a points system.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;code&gt;Public Class Form1&lt;br /&gt;    Inherits System.Windows.Forms.Form&lt;br /&gt;&lt;br /&gt;#Region " Windows Form Designer generated code "&lt;br /&gt;&lt;br /&gt;    Public Sub New()&lt;br /&gt;        MyBase.New()&lt;br /&gt;&lt;br /&gt;        'This call is required by the Windows Form Designer.&lt;br /&gt;        InitializeComponent()&lt;br /&gt;&lt;br /&gt;        'Add any initialization after the InitializeComponent() call&lt;br /&gt;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    'Form overrides dispose to clean up the component list.&lt;br /&gt;    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;        If disposing Then&lt;br /&gt;            If Not (components Is Nothing) Then&lt;br /&gt;                components.Dispose()&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;        MyBase.Dispose(disposing)&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    'Required by the Windows Form Designer&lt;br /&gt;    Private components As System.ComponentModel.IContainer&lt;br /&gt;&lt;br /&gt;    'NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;    'It can be modified using the Windows Form Designer.  &lt;br /&gt;    'Do not modify it using the code editor.&lt;br /&gt;    Friend WithEvents Timer1 As System.Windows.Forms.Timer&lt;br /&gt;    Friend WithEvents BTNLEFT As System.Windows.Forms.Button&lt;br /&gt;    Friend WithEvents BTNRIGHT As System.Windows.Forms.Button&lt;br /&gt;    Friend WithEvents LBLBAT As System.Windows.Forms.PictureBox&lt;br /&gt;    Friend WithEvents bouncemonkey As System.Windows.Forms.PictureBox&lt;br /&gt;    Friend WithEvents PauseBTN As System.Windows.Forms.Button&lt;br /&gt;    Friend WithEvents quitBTN As System.Windows.Forms.Button&lt;br /&gt;    Friend WithEvents StartBTN As System.Windows.Forms.Button&lt;br /&gt;    &lt;/code&gt;&lt;div class='ljparseerror'&gt;[&lt;b&gt;Error:&lt;/b&gt; Irreparable invalid markup ('&amp;lt;system.diagnostics.debuggerstepthrough()&amp;gt;') in entry.  Owner must fix manually.  Raw contents below.]&lt;br /&gt;&lt;br /&gt;&lt;div style="width: 95%; overflow: auto"&gt;HELP ME! I am stuck with this and my brain has turned to mush!&lt;br /&gt;&lt;br /&gt;I want the start, pause and exit buttons to do as they are meant to. I also need the left and right buttons to be activated by keystrokes (eg pressing z = left, pressing  x = right) I also want to be able to have a points system, where if the &amp;quot;ball&amp;quot; hits the top of the playing area then 1 is added to the score. i.e. a points system.&lt;br /&gt;&lt;br /&gt;&amp;lt;lj-cut&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;code&amp;gt;Public Class Form1&lt;br /&gt;    Inherits System.Windows.Forms.Form&lt;br /&gt;&lt;br /&gt;#Region &amp;quot; Windows Form Designer generated code &amp;quot;&lt;br /&gt;&lt;br /&gt;    Public Sub New()&lt;br /&gt;        MyBase.New()&lt;br /&gt;&lt;br /&gt;        &amp;#39;This call is required by the Windows Form Designer.&lt;br /&gt;        InitializeComponent()&lt;br /&gt;&lt;br /&gt;        &amp;#39;Add any initialization after the InitializeComponent() call&lt;br /&gt;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    &amp;#39;Form overrides dispose to clean up the component list.&lt;br /&gt;    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)&lt;br /&gt;        If disposing Then&lt;br /&gt;            If Not (components Is Nothing) Then&lt;br /&gt;                components.Dispose()&lt;br /&gt;            End If&lt;br /&gt;        End If&lt;br /&gt;        MyBase.Dispose(disposing)&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    &amp;#39;Required by the Windows Form Designer&lt;br /&gt;    Private components As System.ComponentModel.IContainer&lt;br /&gt;&lt;br /&gt;    &amp;#39;NOTE: The following procedure is required by the Windows Form Designer&lt;br /&gt;    &amp;#39;It can be modified using the Windows Form Designer.  &lt;br /&gt;    &amp;#39;Do not modify it using the code editor.&lt;br /&gt;    Friend WithEvents Timer1 As System.Windows.Forms.Timer&lt;br /&gt;    Friend WithEvents BTNLEFT As System.Windows.Forms.Button&lt;br /&gt;    Friend WithEvents BTNRIGHT As System.Windows.Forms.Button&lt;br /&gt;    Friend WithEvents LBLBAT As System.Windows.Forms.PictureBox&lt;br /&gt;    Friend WithEvents bouncemonkey As System.Windows.Forms.PictureBox&lt;br /&gt;    Friend WithEvents PauseBTN As System.Windows.Forms.Button&lt;br /&gt;    Friend WithEvents quitBTN As System.Windows.Forms.Button&lt;br /&gt;    Friend WithEvents StartBTN As System.Windows.Forms.Button&lt;br /&gt;    &amp;lt;System.Diagnostics.DebuggerStepThrough()&amp;gt; Private Sub InitializeComponent()&lt;br /&gt;        Me.components = New System.ComponentModel.Container()&lt;br /&gt;        Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1))&lt;br /&gt;        Me.bouncemonkey = New System.Windows.Forms.PictureBox()&lt;br /&gt;        Me.PauseBTN = New System.Windows.Forms.Button()&lt;br /&gt;        Me.Timer1 = New System.Windows.Forms.Timer(Me.components)&lt;br /&gt;        Me.BTNLEFT = New System.Windows.Forms.Button()&lt;br /&gt;        Me.BTNRIGHT = New System.Windows.Forms.Button()&lt;br /&gt;        Me.LBLBAT = New System.Windows.Forms.PictureBox()&lt;br /&gt;        Me.quitBTN = New System.Windows.Forms.Button()&lt;br /&gt;        Me.StartBTN = New System.Windows.Forms.Button()&lt;br /&gt;        Me.SuspendLayout()&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;bouncemonkey&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.bouncemonkey.Image = CType(resources.GetObject(&amp;quot;bouncemonkey.Image&amp;quot;), System.Drawing.Bitmap)&lt;br /&gt;        Me.bouncemonkey.Location = New System.Drawing.Point(360, 64)&lt;br /&gt;        Me.bouncemonkey.Name = &amp;quot;bouncemonkey&amp;quot;&lt;br /&gt;        Me.bouncemonkey.Size = New System.Drawing.Size(32, 32)&lt;br /&gt;        Me.bouncemonkey.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage&lt;br /&gt;        Me.bouncemonkey.TabIndex = 0&lt;br /&gt;        Me.bouncemonkey.TabStop = False&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;PauseBTN&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.PauseBTN.BackColor = System.Drawing.Color.Transparent&lt;br /&gt;        Me.PauseBTN.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;        Me.PauseBTN.ForeColor = System.Drawing.Color.Gold&lt;br /&gt;        Me.PauseBTN.Location = New System.Drawing.Point(0, 24)&lt;br /&gt;        Me.PauseBTN.Name = &amp;quot;PauseBTN&amp;quot;&lt;br /&gt;        Me.PauseBTN.Size = New System.Drawing.Size(96, 23)&lt;br /&gt;        Me.PauseBTN.TabIndex = 1&lt;br /&gt;        Me.PauseBTN.Text = &amp;quot;pause&amp;quot;&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;Timer1&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.Timer1.Enabled = True&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;BTNLEFT&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.BTNLEFT.BackColor = System.Drawing.SystemColors.InfoText&lt;br /&gt;        Me.BTNLEFT.Font = New System.Drawing.Font(&amp;quot;Rockwell Extra Bold&amp;quot;, 12.0!, System.Drawing.FontStyle.Bold)&lt;br /&gt;        Me.BTNLEFT.ForeColor = System.Drawing.SystemColors.HotTrack&lt;br /&gt;        Me.BTNLEFT.Location = New System.Drawing.Point(328, 472)&lt;br /&gt;        Me.BTNLEFT.Name = &amp;quot;BTNLEFT&amp;quot;&lt;br /&gt;        Me.BTNLEFT.TabIndex = 2&lt;br /&gt;        Me.BTNLEFT.Text = &amp;quot;&amp;lt;&amp;lt;&amp;lt;&amp;lt;&amp;quot;&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;BTNRIGHT&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.BTNRIGHT.BackColor = System.Drawing.SystemColors.InfoText&lt;br /&gt;        Me.BTNRIGHT.Font = New System.Drawing.Font(&amp;quot;Rockwell Extra Bold&amp;quot;, 12.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;        Me.BTNRIGHT.ForeColor = System.Drawing.SystemColors.HotTrack&lt;br /&gt;        Me.BTNRIGHT.Location = New System.Drawing.Point(400, 472)&lt;br /&gt;        Me.BTNRIGHT.Name = &amp;quot;BTNRIGHT&amp;quot;&lt;br /&gt;        Me.BTNRIGHT.TabIndex = 3&lt;br /&gt;        Me.BTNRIGHT.Text = &amp;quot;&amp;gt;&amp;gt;&amp;gt;&amp;gt;&amp;quot;&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;LBLBAT&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.LBLBAT.BackColor = System.Drawing.SystemColors.Desktop&lt;br /&gt;        Me.LBLBAT.Location = New System.Drawing.Point(352, 432)&lt;br /&gt;        Me.LBLBAT.Name = &amp;quot;LBLBAT&amp;quot;&lt;br /&gt;        Me.LBLBAT.Size = New System.Drawing.Size(96, 8)&lt;br /&gt;        Me.LBLBAT.TabIndex = 4&lt;br /&gt;        Me.LBLBAT.TabStop = False&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;quitBTN&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.quitBTN.BackColor = System.Drawing.Color.Transparent&lt;br /&gt;        Me.quitBTN.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;        Me.quitBTN.ForeColor = System.Drawing.Color.Gold&lt;br /&gt;        Me.quitBTN.Location = New System.Drawing.Point(0, 48)&lt;br /&gt;        Me.quitBTN.Name = &amp;quot;quitBTN&amp;quot;&lt;br /&gt;        Me.quitBTN.Size = New System.Drawing.Size(96, 23)&lt;br /&gt;        Me.quitBTN.TabIndex = 5&lt;br /&gt;        Me.quitBTN.Text = &amp;quot;Exit&amp;quot;&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;StartBTN&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.StartBTN.BackColor = System.Drawing.Color.Transparent&lt;br /&gt;        Me.StartBTN.Font = New System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 9.75!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte))&lt;br /&gt;        Me.StartBTN.ForeColor = System.Drawing.Color.Gold&lt;br /&gt;        Me.StartBTN.Name = &amp;quot;StartBTN&amp;quot;&lt;br /&gt;        Me.StartBTN.Size = New System.Drawing.Size(96, 23)&lt;br /&gt;        Me.StartBTN.TabIndex = 6&lt;br /&gt;        Me.StartBTN.Text = &amp;quot;Start&amp;quot;&lt;br /&gt;        &amp;#39;&lt;br /&gt;        &amp;#39;Form1&lt;br /&gt;        &amp;#39;&lt;br /&gt;        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)&lt;br /&gt;        Me.BackColor = System.Drawing.SystemColors.InactiveCaption&lt;br /&gt;        Me.ClientSize = New System.Drawing.Size(752, 517)&lt;br /&gt;        Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.StartBTN, Me.quitBTN, Me.LBLBAT, Me.BTNRIGHT, Me.BTNLEFT, Me.bouncemonkey, Me.PauseBTN})&lt;br /&gt;        Me.ForeColor = System.Drawing.SystemColors.ActiveBorder&lt;br /&gt;        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.Fixed3D&lt;br /&gt;        Me.Name = &amp;quot;Form1&amp;quot;&lt;br /&gt;        Me.Text = &amp;quot;GAME&amp;quot;&lt;br /&gt;        Me.ResumeLayout(False)&lt;br /&gt;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;#End Region&lt;br /&gt;&lt;br /&gt;    Dim forward As Boolean = True&lt;br /&gt;    Dim downward As Boolean = True&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Private Sub start_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PauseBTN.Click&lt;br /&gt;        Timer1.Enabled = Not Timer1.Enabled&lt;br /&gt;    End Sub &amp;#39;Button1_click&lt;br /&gt;&lt;br /&gt;    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick&lt;br /&gt;        Dim x As Integer&lt;br /&gt;        Dim y As Integer&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        x = bouncemonkey.Location.X()&lt;br /&gt;        y = bouncemonkey.Location.Y()&lt;br /&gt;&lt;br /&gt;        &amp;#39;changes direction of bouncmonkey if contacts right/left edge&lt;br /&gt;        If (x &amp;lt;= 0) Or (x &amp;gt;= (Me.Width - 2 &amp;#42; bouncemonkey.Width)) Then&lt;br /&gt;            forward = Not forward&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        &amp;#39;changes direction of bouncmonkey if contacts top edge&lt;br /&gt;        If (y &amp;lt;= 0) Then&lt;br /&gt;            downward = Not downward&lt;br /&gt;            &amp;#39;Label.Text = Label.Text + 1&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        &amp;#39;changes direction of bouncmonkey if contacts bottom edge&lt;br /&gt;        If (y &amp;gt;= (Me.Height - 2.5 &amp;#42; bouncemonkey.Height)) Then&lt;br /&gt;            bouncemonkey.Visible = False&lt;br /&gt;            Timer1.Enabled = False&lt;br /&gt;&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        If bouncemonkey.Top &amp;gt;= (Height - bouncemonkey.Height) Then&lt;br /&gt;            Timer1.Enabled = False&lt;br /&gt;&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        If forward Then&lt;br /&gt;            bouncemonkey.Location = New System.Drawing.Point(x + 30, y)&lt;br /&gt;        Else&lt;br /&gt;            bouncemonkey.Location = New System.Drawing.Point(x - 30, y)&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;        x = bouncemonkey.Location.X()&lt;br /&gt;        y = bouncemonkey.Location.Y()&lt;br /&gt;        If downward Then&lt;br /&gt;            bouncemonkey.Location = New System.Drawing.Point(x, y + 30)&lt;br /&gt;        Else&lt;br /&gt;            bouncemonkey.Location = New System.Drawing.Point(x, y - 30)&lt;br /&gt;        End If&lt;br /&gt;        x = bouncemonkey.Location.X()&lt;br /&gt;        y = bouncemonkey.Location.Y()&lt;br /&gt;        &amp;#39;changes direction if ball meets bat&lt;br /&gt;        If bouncemonkey.Location.Y &amp;gt;= LBLBAT.Top - bouncemonkey.Height _&lt;br /&gt;        And bouncemonkey.Location.X &amp;gt; LBLBAT.Left _&lt;br /&gt;        And bouncemonkey.Location.X &amp;lt; (LBLBAT.Left + LBLBAT.Width) Then&lt;br /&gt;            downward = Not downward&lt;br /&gt;        End If&lt;br /&gt;&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;    Private Sub BTNLEFT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTNLEFT.Click&lt;br /&gt;        If LBLBAT.Left &amp;gt; 0 Then&lt;br /&gt;            LBLBAT.Left = LBLBAT.Left - 50&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Private Sub BTNRIGHT_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles BTNRIGHT.Click&lt;br /&gt;        If LBLBAT.Left &amp;lt; (Me.Width - LBLBAT.Width) Then&lt;br /&gt;            LBLBAT.Left = LBLBAT.Left + 50&lt;br /&gt;        End If&lt;br /&gt;    End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;End Class &amp;#39;Form1&lt;br /&gt;&lt;br /&gt;&amp;lt;/code&amp;gt;&lt;/div&gt;&lt;/div&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:5534</id>
    <author>
      <name>Jem</name>
    </author>
    <lj:poster user="jemjabella" userid="604587"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/5534.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=5534"/>
    <title>A little help..?</title>
    <published>2003-11-19T09:18:06Z</published>
    <updated>2003-11-19T09:18:06Z</updated>
    <content type="html">Okey dokey.&lt;br /&gt;&lt;br /&gt;I am really newbie when it comes to Visual Basic, but I am trying to making a little program in &lt;b&gt;VB6&lt;/b&gt;. I only know what I bothered to listen to last year at college. Anyway, I have a question.. which is probably really stupid, but I couldn't find it everywhere else I looked.&lt;br /&gt;&lt;br /&gt;Is there a way to get my application to be the only thing clickable? So, when it's run.. you can't click off onto something else, or change focus with alt+tab or something like that?&lt;br /&gt;&lt;br /&gt;Anything that would help would be greatly appreciated as i'm totally stupid when it comes to things like this, heh. Also, this is crossposted to another community or two- so my apologies if you see it on your friends list more than once.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:5178</id>
    <author>
      <name>s c u z     m i  ?</name>
    </author>
    <lj:poster user="skuzmi" userid="1229668"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/5178.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=5178"/>
    <title>help a VB newbie with simple debugging</title>
    <published>2003-11-04T05:29:10Z</published>
    <updated>2003-11-04T05:29:10Z</updated>
    <content type="html">This is driving me nuts, not knowing why it doesn't work. I hope there's some kind soul in this com who can and will help me out. Not sure what the rules are, I checked the info, so I'll just put my code behind an LJ-cut. Hope this is ok, let me know if I did something wrong. &lt;br /&gt;&lt;br /&gt;&lt;b&gt;The problem: I cannot extract the customer_no and employee_no data out. Its all random what is returned onto my spreadsheet. I've been debugging for days and can't figure it out. Please please help?&lt;/b&gt; &lt;br /&gt;the database can be found here &lt;a href="http://www.geocities.com/slimeballdude/FSS2000.mdb" target="_blank" rel="nofollow"&gt;fss2000.mdb&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Option Explicit&lt;br /&gt;Dim filter As String&lt;br /&gt;Dim filtercriteria As Boolean&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub cbconame_Click()&lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub cbofilter_Change()&lt;br /&gt;&lt;br /&gt;'   Determine the filter selected&lt;br /&gt; &lt;br /&gt;&lt;br /&gt;    filter = cbofilter.Value&lt;br /&gt;    &lt;br /&gt;    If filter &amp;lt;&amp;gt; "" And filter &amp;lt;&amp;gt; "No filter" Then&lt;br /&gt;       filtercriteria = True&lt;br /&gt;    End If&lt;br /&gt;   &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Private Sub cmd_cancel_Click()&lt;br /&gt;&lt;br /&gt;'   Close the form&lt;br /&gt;&lt;br /&gt;    UserForm.Hide&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub cmd_ok_Click()&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;GetRecords1&lt;br /&gt;    &lt;br /&gt;End&lt;br /&gt;    &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;Private Sub UserForm_Initialize()&lt;br /&gt;&lt;br /&gt;filtercriteria = False&lt;br /&gt;&lt;br /&gt;    With cbofilter&lt;br /&gt;        .List = Array("Customer_No", "Employee_No", "Order_No", "No filter")&lt;br /&gt;    End With&lt;br /&gt; &lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Sub GetRecords1()&lt;br /&gt;   &lt;br /&gt;'   This program gets all the records out of a table by using&lt;br /&gt;'   The GetRows method of the Recordset object.  The records are&lt;br /&gt;'   put into a variant variable in an array.&lt;br /&gt;   &lt;br /&gt;    Dim WrkDefault As Workspace&lt;br /&gt;    Dim FSS2000 As Database&lt;br /&gt;    Dim RS1 As Recordset&lt;br /&gt;    Dim DatabaseName As String&lt;br /&gt;    Dim SQLString As String&lt;br /&gt;    Dim SQLString2 As String&lt;br /&gt;    Dim str1 As String&lt;br /&gt;    Dim tblstring As String&lt;br /&gt;    Dim cndstring As String&lt;br /&gt;    Dim cndstring2 As String&lt;br /&gt;    Dim cndstring3 As String&lt;br /&gt;    Dim sign As String&lt;br /&gt;    Dim orderchoice As String&lt;br /&gt;    Dim signcriteria As Boolean&lt;br /&gt;    Dim qtyAentered As Boolean&lt;br /&gt;&lt;br /&gt;    qtyAentered = False&lt;br /&gt;    signcriteria = False&lt;br /&gt;  &lt;br /&gt;    &lt;br /&gt;        On Error Resume Next&lt;br /&gt;        &lt;br /&gt;        DatabaseName = ThisWorkbook.Path &amp; "\FSS2000"&lt;br /&gt;        Set WrkDefault = DBEngine.Workspaces(0)&lt;br /&gt;        Set FSS2000 = WrkDefault.OpenDatabase(Name:=DatabaseName, ReadOnly:=False)&lt;br /&gt;        &lt;br /&gt;&lt;br /&gt;    &lt;br /&gt;    'selecting relevant customer records to display&lt;br /&gt;&lt;br /&gt;    str1 = "product_a_quantity"&lt;br /&gt;        &lt;br /&gt;    If cbcustnum.Value = True Then&lt;br /&gt;        str1 = str1 + ", customer_no"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;     If cbconame.Value = True Then&lt;br /&gt;        str1 = str1 + ", co_name"&lt;br /&gt;    End If&lt;br /&gt;       &lt;br /&gt;    If cbcity.Value = True Then&lt;br /&gt;        str1 = str1 + ", city"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    If cbstate.Value = True Then&lt;br /&gt;        str1 = str1 + ", state"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;    'employee records&lt;br /&gt;    If cbempnum.Value = True Then&lt;br /&gt;        str1 = str1 + ", employee_no"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    If cbsurname.Value = True Then&lt;br /&gt;        str1 = str1 + ", surname"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    If cbname.Value = True Then&lt;br /&gt;        str1 = str1 + ", name"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    If cbbase.Value = True Then&lt;br /&gt;        str1 = str1 + ", base_pay"&lt;br /&gt;    End If&lt;br /&gt;   &lt;br /&gt;    If cbcom.Value = True Then&lt;br /&gt;        str1 = str1 + ", commission"&lt;br /&gt;    End If&lt;br /&gt;   &lt;br /&gt;    'order records&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;    If cbordnum.Value = True Then&lt;br /&gt;        str1 = str1 + ", order_no"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    If cbmonth.Value = True Then&lt;br /&gt;        str1 = str1 + ", month"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    If cbpdtb.Value = True Then&lt;br /&gt;        str1 = str1 + ", product_b_quantity"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;    If cbpdtc.Value = True Then&lt;br /&gt;        str1 = str1 + ", product_c_quantity"&lt;br /&gt;    End If&lt;br /&gt;    &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'determine sign&lt;br /&gt;If obsmaller.Value = True Then&lt;br /&gt;    sign = "&amp;lt;"&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;If obequal.Value = True Then&lt;br /&gt;    sign = "="&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;If obbigger.Value = True Then&lt;br /&gt;    sign = "&amp;gt;"&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;If txtqty.Value &amp;lt;&amp;gt; "" Then&lt;br /&gt;    qtyAentered = True&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;If sign &amp;lt;&amp;gt; "" And qtyAentered = True Then&lt;br /&gt;    sign = sign + " " + txtqty.Value&lt;br /&gt;    signcriteria = True&lt;br /&gt;End If&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;'construct strings&lt;br /&gt;&lt;br /&gt;    tblstring = "Orders, Customers, Employees"&lt;br /&gt;    cndstring = "Orders.Customer_No = Customers.Customer_No"&lt;br /&gt;    cndstring2 = "Orders.Employee_No = Employees.Employee_No"&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;   'selecting relevant orders records to display&lt;br /&gt;    SQLString = "SELECT " &amp; str1 &amp; " FROM " &amp; tblstring &amp; " WHERE " _&lt;br /&gt;    &amp; cndstring&lt;br /&gt;    &lt;br /&gt;    &lt;br /&gt;        If signcriteria = False And filtercriteria = False Then&lt;br /&gt;            SQLString2 = " AND " &amp; cndstring2&lt;br /&gt;        End If&lt;br /&gt;        If signcriteria = True And filtercriteria = True Then&lt;br /&gt;            SQLString2 = " AND " &amp; cndstring2 &amp; " AND product_a_quantity " _&lt;br /&gt;            &amp; sign &amp; " ORDER BY " &amp; filter&lt;br /&gt;        End If&lt;br /&gt;        If signcriteria = False And filtercriteria = True Then&lt;br /&gt;            SQLString2 = " AND " &amp; cndstring2 &amp; " ORDER BY " &amp; filter&lt;br /&gt;        End If&lt;br /&gt;        If signcriteria = True And filtercriteria = False Then&lt;br /&gt;            SQLString2 = " AND " &amp; cndstring2 &amp; " AND product_a_quantity " _&lt;br /&gt;            &amp; sign&lt;br /&gt;        End If&lt;br /&gt;        &lt;br /&gt;        &lt;br /&gt;   &lt;br /&gt;    Set RS1 = FSS2000.OpenRecordset(Name:=SQLString + SQLString2, Type:=dbOpenDynaset)&lt;br /&gt;&lt;br /&gt;    'debug&lt;br /&gt;    ActiveCell.Offset(0, 1) = SQLString + SQLString2&lt;br /&gt;&lt;br /&gt;    Worksheets("Sheet1").Range("a1").CopyFromRecordset RS1&lt;br /&gt;&lt;br /&gt;    FSS2000.Close&lt;br /&gt;    &lt;br /&gt;End Sub&lt;a name='cutid1-end'&gt;&lt;/a&gt;</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:5111</id>
    <author>
      <name>Trevor</name>
    </author>
    <lj:poster user="themadhatter444" userid="1176235"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/5111.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=5111"/>
    <title>Newb</title>
    <published>2003-10-22T18:53:00Z</published>
    <updated>2003-10-22T18:53:00Z</updated>
    <content type="html">Hey guys, Im new here so I thought I would introduce myself. Im 15 years old and I live in Glendale AZ. I taught myself VB6 from a Microsoft book about a year ago, I have forgotten most of it with school and all, but Im going to take another whack at it this weekend and see if it all comes back to me. Thanks!</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:4846</id>
    <author>
      <name>/ˈdʒeɪms ˈæd.kɒt/</name>
    </author>
    <lj:poster user="adcott" userid="120900"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/4846.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=4846"/>
    <title>visualbasic @ 2003-10-13T18:15:00</title>
    <published>2003-10-13T10:15:44Z</published>
    <updated>2003-10-13T10:15:44Z</updated>
    <content type="html">I've been teaching myself VB6 for the past couple of weeks and I'm curous about something...&lt;br /&gt;&lt;br /&gt;When adding a reference for regular expressions I notice there are two to chose from, both are titled "Microsoft VBScript Regular Expressions" but one is v1.0, the other 5.5.&lt;br /&gt;&lt;br /&gt;What's the difference? they both seem to work well enough.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:4415</id>
    <author>
      <name>pick that shit up</name>
    </author>
    <lj:poster user="clown_shoes" userid="1184047"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/4415.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=4415"/>
    <title>.NET</title>
    <published>2003-09-22T13:33:15Z</published>
    <updated>2003-09-22T13:33:15Z</updated>
    <content type="html">I've been having a discussion with my boss about moving to .NET.&lt;br /&gt;&lt;br /&gt;His opinion is that it's not really been accepted by the industry.  I disagree.&lt;br /&gt;&lt;br /&gt;How many of you are using it?  Is there any sites that show any statistics of what languages people are using, etc?&lt;br /&gt;&lt;br /&gt;Thanks...</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:4347</id>
    <author>
      <name>Way 2 Tired</name>
    </author>
    <lj:poster user="way2tired" userid="8638"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/4347.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=4347"/>
    <title>visualbasic @ 2003-08-26T22:04:00</title>
    <published>2003-08-26T19:04:55Z</published>
    <updated>2003-08-26T19:04:55Z</updated>
    <content type="html">Hi! I just joined, and I'm looking for other communities around VB.Net or Database stuff, etc. as well.&lt;br /&gt;&lt;br /&gt; I do VB.Net for a living, so bring the questions, and we can learn together, though I'm really more of a DBA.</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:3966</id>
    <author>
      <name>Do the chickens have large talons?</name>
    </author>
    <lj:poster user="1professorfrink" userid="480015"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/3966.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=3966"/>
    <title>Simple question...</title>
    <published>2003-07-09T22:10:33Z</published>
    <updated>2003-07-09T22:10:33Z</updated>
    <content type="html">Hello, I started a VB class a few weeks ago, and I just stumbled upon this community. Therefore, hello.&lt;br /&gt;&lt;br /&gt;and here goes for my first question...&lt;br /&gt;&lt;br /&gt;How could I trigger a btn_Click event to uncheck or check a check box?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:3118</id>
    <author>
      <name>/home/jason</name>
    </author>
    <lj:poster user="vxjasonxv" userid="699816"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/3118.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=3118"/>
    <title>Renaming Files</title>
    <published>2003-04-03T01:32:55Z</published>
    <updated>2003-04-03T01:32:55Z</updated>
    <lj:music>Blumchen - Bicycle Race</lj:music>
    <content type="html">VB6.&lt;br /&gt;I have a form.&lt;br /&gt;Two File Directory Objects.&lt;br /&gt;One that points to one directory.&lt;br /&gt;One that points to another one.&lt;br /&gt;&lt;br /&gt;The first file directory has properly named (but ruined) files.&lt;br /&gt;The second file directory has improperly named (but perfect sounding) files.&lt;br /&gt;&lt;br /&gt;All I want to do it select a file from the first box, and one from the second box, and click a button, and have the second filename turn into the first filename.&lt;br /&gt;&lt;br /&gt;I tried the simple way.&lt;br /&gt;&lt;br /&gt;Private Sub btnOk_Click()&lt;br /&gt;File2.Filename = File1.Filename&lt;br /&gt;End Sub&lt;br /&gt;&lt;br /&gt;And I tried to screw around with the .Path as well.&lt;br /&gt;But for the life of me (And my sanity at 2:30AM), I can't get it to work.&lt;br /&gt;I've wanted to learn how to do this so I can create a POWERFUL Mass ID3/File Tagger/Namer Application.&lt;br /&gt;&lt;br /&gt;Help on renaming files via VB6?&lt;br /&gt;&lt;br /&gt;(P.S. The common dialog takes too long for these tasks.)</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:2847</id>
    <author>
      <name>Yan Can Code</name>
    </author>
    <lj:poster user="tallin" userid="176057"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/2847.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=2847"/>
    <title>Type martialing</title>
    <published>2003-03-26T09:31:38Z</published>
    <updated>2003-03-26T09:31:38Z</updated>
    <lj:music>John Lennon - Number Nine Dream</lj:music>
    <content type="html">Greetings and salutations.  I'm posting this to a couple of .NET programming communities, in the hope that someone will have an answer to this.&lt;br /&gt;&lt;br /&gt;I'm writing, in what I laughingly call my spare time, a personal information management system.  This is in response to a similar program that I will leave unnamed, that is supposedly designed for the visually impaired, and wins the prize for "most unintuitive user interface".  Anyway, this program wants to support either COM *or* .NET add-ins.  Each add-in wants to be able to return an icon representing what type of data it handles, as well as an icon for each data item indicating anything from an unread message to a protected journal entry.  What the icons represent is actually completely irrelevant.  Of course, .NET lets you declare a parameter of type Image or, for that matter, of type Icon.  How does COM handle that?  Is there a way to make an Image object from an HICON cast to an UINT?  Is the Image object itself COM-callable?  Am I unnecessarily complicating things?  Should I just give over the notion of supporting COM add-ins for anything?</content>
  </entry>
  <entry>
    <id>urn:lj:livejournal.com:atom1:visualbasic:2630</id>
    <author>
      <name>Just another Beachcomber!</name>
    </author>
    <lj:poster user="jerseygirl1" userid="372238"/>
    <link rel="alternate" type="text/html" href="https://visualbasic.livejournal.com/2630.html"/>
    <link rel="self" type="text/xml" href="https://visualbasic.livejournal.com/data/atom/?itemid=2630"/>
    <title>Favorite ASP server/developing program</title>
    <published>2002-10-28T17:40:25Z</published>
    <updated>2002-10-28T17:40:25Z</updated>
    <content type="html">Anyone have a favorite ASP server/development program???  What is it?</content>
  </entry>
</feed>
