hmmm... not sure... but should that not be fieldDate = " & Date ???
Good Luck
hmmm... not sure... but should that not be fieldDate = " & Date ???
Good Luck
Glad you got it solved... Next time though to keep your thread from being moved you should specify which version of .net you are using in your question...like
I'm using .net 2k2, 2k3, 2k5, 2k8, 2k10 and I...
If you get my meaning...
Good Luck
Try recording a macro and then looking at the code...
Good Luck
Welcome rahul,
With a quick search with one of your friends (yahoo, google, ask, answers, bing) you could find this information... like this search...
http://search.yahoo.com/search?p=vb6+hard+drive+serial+number&toggle=1&cop=mss&ei=UTF-8&fr=yfp-t-701
Good Luck
So then use the count code to see if it exists... If Rs.Fields("THECOUNT").Value = 0 Then it does not exists and so you can add it...
Good Luck
omoridi,
You have been around long enough to know that you should not be necroposting. Raising the old dead threads...
Close...
Dim MyString As String, MyStringArray() as String, ForLoopCounter As Integer
'...open rs etc..
Do While Not Rs.EOF
MyString = MyString & ","
Rs.MoveNext
Loop
MyStringArray = Split(MyString, ",")
For ForLoopCounter = 0 To UBound(MyStringArray)
'....
Good Luck
To answer your first question...
Me.ZOrder = 0
Also, don't forget making a menu item as a window list...
Now, for enumeration...
Dim F As Form
For Each F In Forms
If F.Name <> "MDIForm1" Then
If F.MDIChild = True Then
Debug.Print F.Name
End If
End If
Next
Good Luck
Okay, a business lawyer is what you will need... 1st, you will need to discuss with the lawyer what kind of business license you want. LLC, corp, etc...
As for protecting your code and talking to programmers, I doubt you would talk to other programmers. You would however talk to hospital administration staff as they are the ones who do the buying...
Now, from the sounds of it, because of your expectations in having to talk to programmers, it seems that your program is meant to intergrate/access the customers accounting/patient records system. If so, then you may not need to actually talk with the programmers yourself. Well, that is if you hire and train a programmer on your system.
Then comes the best way to protect your code. Don't let outside personnel see it. Once you or your programmer has all the information needed to integrate the system into the customers system, you compile it and make an installable so all they need to do is install your program.
Good Luck
You have the right keyword!!! Mid... type it in and press F1 to read all about it...
Good Luck
First, increase the page file size and second, never use a varient array...
In vb's help type, on index tab, type in "data types" and hit enter. When the dialog comes up, scroll down to Data Types Keyword Summary Visual Basic Reference>Display. Click on Boolean (2nd line first word). Click on See Also>Select Data Type Summary Visual Basic Reference. Now, on that page scroll down to where it shows the overhead for varients...16 bytes for each element in the array that is a number and 22 bytes for each element that is considered a string by the unknown (runtimes) mysterious forces behind vb6.
My Goodness my good man/woman do you realize just how much memory you are eating up by using a varient??? Use a string if you must, or a long... BUT NEVER USE A VARIANT!!!!
Good Luck
Using the webbrowser control? Go over to vbforums to their vb6 codebank section and search for their webbrowser tutorial.
Good Luck
For a start see... http://www.shrinkwrapvb.com/ and then use your friends (yahoo, google, ask, answers, bing) to search for vb6 mp3 extract as I know there is some code out there already (Remember, if you have thought of it, more than likely so has someone else...).
Good Luck
Okay, there is more than one way in which to use excel with visual basic 6.0. Now, you said as a database so you will need to use your friends (yahoo, google, ask, answers, bing) and search for vb6 ado tutorial. Then see http://www.connectionstrings.com for a DNS LESS connection string that you will need for your ADO connection.
Also, you could use your friends to search for vb6 automating excel tutorial...
Good Luck
Well that depends upon what you want to do... and how the application works...
Okay, lets see if I can simplify my thoughts....
Biggest initial payday for you is to sell them the code base and wash your hands of it an any further development for X number of years. This is a one shot deal/payday. Also, find a lawer that will do this as a flat rate or percentage of sale price (do not find an ambulance chaser as they will be looking for too high of a percentage...Look for business lawer and I would also suggest that you interview him/her/them as if you were hiring an employee. An employee that will look out for your best interests. Also, you don't have to like this employee but you do have to trust them).
From there, you have several different options and hybrids of these options but as you are a doctor, I'm guessing you really don't want to change professions, but with that said, you don't have to change professions if you want to be a small business owner. So before I go into all these other possibilities, what are you wanting to do...???
Look into the intrisic Shell Function or ShellExecute API...
Good Luck
If the Make Project.exe is greyed out, then that means you must be using the Control Creation Edition of Visual Basic 6.0 and you will need to go over to either nextag.com or ebay to purchase a legal copy. I would suggest that you purchase Visual Studio 6.0 Enterprise edition...
Package and deployment wizard should be a menu item under Microsoft Visual Studio Tools sub directory...
Good Luck
Type in FormatCurrency and Press F1...
MsgBox FormatCurrency(12345678.9, 2, vbUseDefault, vbUseDefault, vbUseDefault)
Good Luck
A select case statement might help or you could use and if elseif structure...
Select Case Combo1.Text
Case "Orange"
'formorange.show
Case "Apple"
'formapple.show
Case "Grape"
'formgrape.show
Case Else
'sometimes the combo box may not have text in it...
End Select
Good Luck
A couple of different things may do the trick...
1) upgrade your sp to vs6sp6b.exe http://www.microsoft.com/downloads/details.aspx?familyid=9EF9BF70-DFE1-42A1-A4C8-39718C7E381D&displaylang=en
2) turn UAC off
3) learn API SendMessage with WM_SETTEXT Const (you may or may not need some combination of the following... FindWindow, EnumWindows, EnumChildWindows, PostMessage)
Good Luck
I'm thinking you might be in the wrong forum... because if you are wanting to do this from your site, i.e. clicking a button/link in IE that is from your site and logging into yahoo, then you need a forum for web sites. PHP, ASP.NET or classic asp.... whatever you have done your site with....
Good Luck
And you are in the wrong forum as this is a forum for VB6.0 which is pre .net tech...
There is example code on this site, on the web, in the help files for VB. You just need to put a little effort forward to find them... BY SEARCHING!!!
Then if you have any problems with your code, post it and tell us what line you are getting your error on, its number, and its description...
Good Luck
ranjani, welcome to the site... It is not nice to highjack someone elses thread as you have done and frowned upon by many a site. So please, for future reference, if you need to reference someone elses thread or an older thread as this one is getting to be, copy the url into your own thread posting along with your question.
As for your question, if your going .NET... you might as well go all the way with .NET and learn as much as you can. However, if you are wanting to be webdesigner then I would suggest that you learn ASP.NET classic ASP and PHP as I see a lot of requests for those skill sets...
Good Luck
Okay, it is time to use your friends (yahoo, google, ask, answers, bing) but, you will need to do multiple searches as I don't think there is a complete solution for what you are looking for out there...
First was a search on vb6 enumerate machines lan which found this...
http://www.pscode.com/vb/scripts/ShowCode.asp?txtCodeId=55993&lngWId=1
then of course there is the old standby site with so much information that it just pops up when you search vb get ip from name...
http://vbnet.mvps.org/index.html?code/network/index.html
(scroll down to see the different sections...)
Good Luck
sidnei, good post but if you reread jemz post you will see that they are entering H-1010 for the primary key, meaning that the primary key is a text field. So jemz I would suggest that you use sidnei's 1st suggestion...
strSQL = "SELECT COUNT(fieldname) AS THECOUNT FROM tablename WHERE fieldname = 'H-1010'" 'or conversly you could do...
'strSQL = SELECT * FROM tablename WHERE fieldname = 'H-1010'"
'set Rs = ...
If Rs.Fields("THECOUNT") = 0 Then
strSQL = "INSERT INTO tablename(fieldname1, fieldname2, fieldname3) VALUES('H-1010', someothernumericvalue, 'someothertextvalue')"
Cn.Execute strSQL
Else
MsgBox "Key Exists! Please enter another primary key", vbOkayOnly, "Primary Key Exists!"
End If
Good Luck
So what is your problem? Are you trying to figure out how to replace those values? Open the file for Output...
See in VB's help...
FreeFile Function
Open Statement
Line Input or Input Function 'for reading
Print Statement 'for writing
Close Statement
Good Luck
Time to use your friends (yahoo, google, ask, answers, bing) to search for vb6 rs232...
Good Luck
Well you have to know that there is a difference between printing a form and printing the contents of the form...
Look at Printer.Print "my string" along with currentx/y properties for printing information...
Good Luck
How do you want to access the *.mdb from VB6.0? RDO, ADO, DAO, Data1, ADODC1? What code have you tried? Any errors? What Line?
We need a bit more information to be able to help you but if you are wanting to use ADO see both the data form wizard (under add-ins>add-in manager) and http://www.connectionstrings.com...
Good Luck
Yes you can. Just as soon as you use your friends (yahoo, google, ask, answers, bing) and search for it...
Good Luck
The PDW is a bit outdated, but with that said, if you run it as admin and still recieve this error message, it should be no problem. However, if you do have problems with your program you might want to download Windows Installer 1.1 or inno. Windows Installer is the upgrade for the PDW (kind of it is actually the replacement for it).
Good Luck
Want to pass an array??? Array arguement must be byref...
Private Sub mysub(ByRef mystringarray() As String)
End Sub
Good Luck
You will need a database, some hardware, and some software. What exactly is up to you....
Now, if you want more help than that, lets see what you have tried. Where are you getting errors and on what line? What do you mean by automated?
Good Luck
Okay, this can be done with the webbrowser control (Project>Components>Microsoft Internet Controls>ok)
Now the best place to get a tutorial on the WebBrowser Control is over at vbforums in their codebank section...
Good Luck
Well since you are using an illegal copy of VB you can use the MSDN at MS for a lot of your look ups on builtin functions...
As for doing it without using screenshots...
Wow! Just found this... http://www.newfreeware.com/development/257/
when I was looking for this... http://support.microsoft.com/kb/193379
Good Luck
Well what do you know!!!! Another nonexistant code snipped!!!! And low and behold, it is another question!!!!
Well now, lets see where the OP's code could have gone wrong.... Well what do you know!!! No code to examine!!! So I wonder how we are going to help the OP if we don't know what code they are using???
Such a quandry!
One, this is not a code snippet!!!
Two, what do you want to search for? Aliens? Cats? Dogs? Stars? Mice? Roaches? Farmland?
No! It couldn't be any of that could it??? Must be a hard drive, internet, LAN, WAN, words, machines, users, domains, or perhaps a database?
Hmmm... now if only the OP (that's Original Poster) only provided this information....
Hmmm... Three child forms... Well, you are either going to need to capture a screenshot of each and assemble a bitmap from them and then print that out, or use a report of some kind. Either a data report or crystal reports should do the trick for you if you go that route. Now, if you have VB6.0 pro or enterprise, you should find a directory called crystal on your install disks. This is crystal reports 4.5 or 4.6. and is fairly easy to use...
Good Luck
I suggest that you do what jireh suggest but before you do, set the style of the combo box to 1 - simple combo. Then resized it's height to see if that is what you are looking for...
Good Luck
It should be installed on the users computer when you/they install your program... Oh, no!!! Don't tell me you thought you could get away with just giving them the exe!!!! No, you have to at least use the PDW (Package and Deployment Wizard), or better yet, you could use Windows Installer 1.1 or Inno to do your setup package for you so that they get all the dependency files you need...
Good Luck
Okay, you want to upgrade a program and you know how to do it from a dos batch file but you don't want to use the dos batch file because it can only do so much... So then create an upgrade program that can do what you want with those excel workbooks/sheets. Now, however you do it, strait program, new install, dos batch + program... your goal is to update a bunch of files on the end users computer and you want to do it as painlessly as possible for them right? So, a dos batch file can do some of the work for you, i.e. replacing those files that it can, and it can launch(shell, spawn, shellexecute...) your upgrade program that can manipulate those excel files for you. Furthermore, the dos batch file can also do your cleanup for you if you need it to...
Good Luck
Glad you were able to solve it yourself, but why did you not post your solution so others could learn from it or why have you not marked your thread as solved?
Good Luck
So spawn the upgrade exe from the dos batch file...
Good Luck
Okay, so you don't know how to use Paint?...
Were missing something here, like what is graphics original format? Why cannot you use paint to do a save as? Is the file not supported by VB? Why cannot you use the Picture property of the form in the design environment to load the graphic? Don't know about the LoadPicture Function?
A whole lot of information is missing here don't you think?
Simple as it should have a driver that shows up in the printers list...
Printer.Print "This is my string"
Printer.EndDoc
Good Luck
Use the datediff function and if you do not have any processing going on at the button click event, use a timer set to 60000 and see if Now() or Time is greater or equal to the value from the datediff function...
Good Luck
Perhaps a quick search with your friends (yahoo, google, ask, answers, bing) might return some results... http://search.yahoo.com/search?p=vb6+quickbook&toggle=1&cop=mss&ei=UTF-8&fr=yfp-t-701 or perhaps a search of their site might provide some useful information... http://intuitsearch.intuit.com/search?output=xml_no_dtd&num=15&client=accountant&site=proadvisor&proxystylesheet=accountant&q=visual+basic
Good Luck
Do you know how to use ADO? Search with your friends (yahoo, google, ask, answers, bing) for vb6 ado tutorial. See http://www.connectionstrings.com. Use the Data Form Wizard under Add-Ins>Add-In Manager.
Good Luck