1,130 Posted Topics

Member Avatar for sidhu51

Once again, as I am repeating both WaltP and kinwang2009,... What method do you use to open the file(s) in question presently??? Native... FreeFile Function Open Statement Input Function Or Line Input Function Close Statement Or via the API CreateFile, or FSO, or are you actually using the API ShellExecute …

Member Avatar for WaltP
0
97
Member Avatar for Masterace

Well using integers will not allow for the showing of cents or decimal value portions of a dollar... [code] MsgBox Format(-1000.45, "$#,#.00;-$#,#.00") [/code] Good Luck

Member Avatar for vb5prgrmr
0
85
Member Avatar for P.manidas

As kinwang2009 pointed out, the use of the msgbox function is called for here, but as you may be wanting to have a custom message box, you will need to show the form vbmodal and/or return a value from that form. [code] Load FrmMsgBox FrmMsgBox.label1.caption=”Do you want to save the …

Member Avatar for P.manidas
0
309
Member Avatar for akssps011

Using the Printer object, you could use its currentx and currenty properties to line up your text before you enddoc it... Good Luck

Member Avatar for vb5prgrmr
0
73
Member Avatar for papamutz

Ahhh.... I see... You need to use a for loop along with the mid function to retrieve each character from the string. Then you could use either a select case or an if elseif endif structure to test that character and build your output string... Good Luck

Member Avatar for vb5prgrmr
0
75
Member Avatar for cabsjonel

Hmmm.... tblCustomer iCustID 'auto number vFName 'first name vLName 'last name tblCustBal iBalID 'auto number iCustID 'number-foreign key to tblCustomer's unique id (auto number) '... Or however you have your tables designed... Then in access, tools>relationships, drag iCusID from tblCustomers to iCustID in tblCustBal. When the dialog comes up, select …

Member Avatar for kinwang2009
0
86
Member Avatar for KiltedScot
Member Avatar for david1987
Member Avatar for student02

It looks like it is possible but the error you reported is a problem with your query... It is saying that this part... [code] strSQL = "SELECT * FROM [COLOR="Red"]tablename[/COLOR] [/code] is the problem. It might be you have accidently misspelled the table name in some way or anothere. Go …

Member Avatar for vb5prgrmr
0
154
Member Avatar for princeutoy

Sounds like you want to add the ability for user to run a script at runtime... See microsoft script control under components and in help. Also, use your friends (yahoo, google, ask, answer, bing) and search for vb6 script control as I know there are a couple of examples out …

Member Avatar for vb5prgrmr
0
87
Member Avatar for firoz.raj

raj, you know by now not to raise the dead and instead copy the url into your thread if you need to reference it... I am reporting your post...

Member Avatar for vb5prgrmr
0
92
Member Avatar for jemz
Member Avatar for drewpee

If you did an order by Date_Recieved, I'm betting that the 3rd record would be first and the second record would be last as that would be the order of the dates... Which means your functions are returning the correct value/records... Which means, if you want the last record, you …

Member Avatar for drewpee
0
94
Member Avatar for PinoyDev

Not sure if you can do this anymore blocker, as M$ does not like you to do these things. But, I do know that there is code out there (that worked on older systems) that you can give a try. Now, I believe you know who your friends are by …

Member Avatar for PinoyDev
0
136
Member Avatar for student02

strSQL = "SELECT SUM(Amount_Paid) AS THESUM FROM tablename" 'open Result = Rs.Fields("THESUM").Value Good Luck

Member Avatar for kinwang2009
0
109
Member Avatar for lloydi12345
Member Avatar for kavya_nayak7

SomeVariable = DTP.Month SomeVariable = Month(DTP.Value) SomeVariable = Format(DTP.Value, "m") 'or mm for 03 Good Luck

Member Avatar for vb5prgrmr
0
53
Member Avatar for drewpee

If, those date fields are date fields and this is an access database you are trying to access, then the single ticks ( ' ) (plumbers crack) :) need to be replaced by the pound symbol (#)... (don't go there! :)) Good Luck

Member Avatar for vb5prgrmr
0
114
Member Avatar for student02

Time to use your friends (yahoo, google, ask, answers, bing) and search for vb6 word automation tutorial... Good Luck

Member Avatar for student02
0
118
Member Avatar for jemz

With better english.... To do what you want would require you to subclass the message box, which is no easy thing, and then you may not be able to accomplish what you want. So, your only choice is to create a form that you can use as a message box …

Member Avatar for vb5prgrmr
0
89
Member Avatar for jemz
Member Avatar for Jx_Man
0
118
Member Avatar for akssps011

A typical error handler goes something like this... [code] Private Sub Command1_Click(Index As Integer) On Error GoTo Command1_ClickError Exit Sub Command1_ClickError: End Sub [/code] Now, looking at your code I can see you have the exit sub after the msgbox and not before the error handler label.... Good Luck

Member Avatar for akssps011
0
100
Member Avatar for student02

Well you could use the SUM(fieldname) in a query but it is hard to tell with what little information you have given... Good Luck

Member Avatar for student02
0
80
Member Avatar for lloydi12345

To "Exit Sub" so nothing else happens but before this you may want to "SetFocus"... Use Exit Sub so the rest of the code does not execute after your message box and if you want use Text1.SetFocus to make it easy for your user to enter information... Good Luck

Member Avatar for student02
0
94
Member Avatar for kavya_nayak7

Do you have a table that lists the quantity? If so, you could create and use another table that holds notification info on when user should be notified when the stock is running low... Or for that matter you could append a field to the table... say iReOrdQty and use …

Member Avatar for vb5prgrmr
0
78
Member Avatar for mahdouch5

What that error is telling you is that you do not have a control by that name. So, go to form design view and click on the option button that you think is of that name and see what its name is in properties... Good Luck

Member Avatar for Jx_Man
0
224
Member Avatar for vasantharajan n

see [url]http://www.connectionstrings.com[/url] for the connection string you will need. See M$ for the oracle driver you will need if you don't have it, and see one of your friends (yahoo, google, ask, answers, bing) and use them to search vb6 ado tutorial... Good Luck

Member Avatar for vb5prgrmr
0
33
Member Avatar for job2617

Use the mouse move event of both the form and control along with the MouseIcon and MousePointer properties of both to change and reset the mouse icon. You can also use the mouse move events to start and stop any animation or to control changes in the image displayed. Good …

Member Avatar for kinwang2009
0
118
Member Avatar for drewpee

That error is telling you that you missed a closing statement of some sort within the loop if not the closing statement of the loop itself and in this case you missed and End If to the last If bCheck = True Then statement... Good Luck

Member Avatar for drewpee
0
185
Member Avatar for happydiamond

So I take it you are using some sort of VBA and NOT VB! Like Access, Excel, Word, or some other office product... And since you don't write code and neither does your IT department I would suggest that in the future that you go to [url]http://www.rentacoder.com[/url] and place your …

Member Avatar for vb5prgrmr
0
123
Member Avatar for PinoyDev
Member Avatar for drewpee

Here are some SQL terms for you to look up... Group By Clause with a Having Clause Order By Clause Now, there are several ways to accomplish what you want to do... You can group by on the company name with a count of company name having that count > …

Member Avatar for vb5prgrmr
0
100
Member Avatar for student02

[code] 'where Tution_Fee = tablename strSQL = "UPDATE Tution_Fee SET (Amount_Paid = [Tution_Fee].[Amount_Paid]+" & (Val(Text1.Text) - Val(Text2.Text)) & " WHERE Tuition_Fee_ID_PK = " & Form2.Label16.Caption [/code] Good Luck

Member Avatar for student02
0
208
Member Avatar for yopirates

Besides Walt's advice, it sounds like you want to make your form scrollable via the use of a horizontal scrollbar. The easiest thing to do, would be to put all your controls into a picture box except the scrollbar. Then you could use the change event of the scrollbar to …

Member Avatar for yopirates
-1
154
Member Avatar for savi_karthika

drew and mudan... It is not nice to necropost as you have!!! Raising the dead around here may get people miffed at you. If you are having the same problem as someone else or in this particular case as an old thread, please do not highjack the thread or resurrect …

Member Avatar for vb5prgrmr
0
210
Member Avatar for piyakka

As a matter of fact I do have something that you could look at and come up with something that may work for you but that is not the point of these forums. The point is, is we would like to see an effort from you and what you have …

Member Avatar for vb5prgrmr
0
108
Member Avatar for vishaldalya

vishaldalya, I'm holding off on reporting your post for one reason only, and that is because you are new to this forum, but as things go... We will not do your homework for you. You want it done for you, goto [url]http://www.rentacoder.com[/url] or [url]http://www.odesk.com[/url] and put your homework up for …

Member Avatar for Vineeth K
-1
152
Member Avatar for namurt1

Time to use your friends (yahoo, google, ask, answers, bing) and search for vb6 excel tutorial. You will also need to know the Dir Function... And to do what you want to do is enumerate through folder making a list of the excel file names. Then you will have to …

Member Avatar for vb5prgrmr
0
157
Member Avatar for kashy!

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 …

Member Avatar for kashy!
0
313
Member Avatar for DogDee

Form? Datagrid view??? Datasheet View??? If you are in access, you cannot add a DTP to a table...(at least as far as I know but then again I don't do much VBA...). Me thinks we need more information... Good Luck

Member Avatar for vb5prgrmr
0
83
Member Avatar for The Pobo

And what does that proceedure look like? Also, the randomize statement should only be called once in the lifetime of a program, which means you should move it to your startup object, either sub main or form load. Good Luck

Member Avatar for The Pobo
0
220
Member Avatar for tyrael

If you are using ADO and a DNS Less connection string see [url]http://www.connectionstrings.com[/url] for the proper format. If not, then we will need to have more details like the relavent code, the actual error number and description, and the line of code that is causing the error, along with what …

Member Avatar for vb5prgrmr
0
91
Member Avatar for drewpee

And if you are using access, instead of the single ticks (') you will need to use the pound (#) sign... Good Luck

Member Avatar for drewpee
0
169
Member Avatar for leverin4

However, the query unload event is fired before the unload and terminate events and this event will be able to tell you how and why your form is closing... Good Luck

Member Avatar for WaltP
0
83
Member Avatar for vishaldalya

Okay, you almost have it. In Form2, Command1_Click, you have Form3.Combo?/Text?.Clear/"" and this is where you should be adding the information you want to carry over to Form3. You will also need to double click on the command2 button to create the sub for that functionality also... Good Luck

Member Avatar for vb5prgrmr
0
92
Member Avatar for johnpatrick01

Delete what? A file? Use Kill Statement. Delete a record? From what? A text file? Read it in, remove what you want, and write it back out. From a database? Use a delete statement (DELETE FROM tablename WHERE fieldname = somevalue). Don't know how to access data in a database? …

Member Avatar for vb5prgrmr
0
105
Member Avatar for london-G

Well,... You are going to have to map (no pun intended), the x/y cordinates of the form/image control/picture box to the cities displayed and if you have more than one map, your going to need more than one set of coordinates. Now, I have a suggestion for you on your …

Member Avatar for london-G
0
883
Member Avatar for london-G

and perhaps Walt you should recognize that this thread is in the wrong forum and have moved it to the VB.NET forum...

Member Avatar for wasyazwan
0
1K
Member Avatar for WAIWAIWAI

See [url]http://www.vbforums.com/showthread.php?t=473677[/url] for more sorting routines... Good Luck

Member Avatar for vb5prgrmr
0
100
Member Avatar for betabasic

I'm betting if you use your friends (yahoo, google, ask, answers, bing) and search for convert delphi to vb, you will find a couple of converters out there... Good Luck

Member Avatar for anant26692
0
200

The End.