2,155 Posted Topics

Member Avatar for Sorb3t3ro

It seems that your connection is looking for the database in the same place as to when you were developing your app. Go make sure that it is still in the same folder on the SAME pc you developed on as to where you have installed onto. In other words, …

Member Avatar for vb5prgrmr
0
2K
Member Avatar for neosonic

No you can not "save as". an Activex control is build via code and then saved as an "ocx" file. This can then be uploaded to your web site. You will still need some coding done. There are hunfreds of web design applications available for download that will help you …

Member Avatar for AndreRet
0
927
Member Avatar for burdigol

a Server is the way to go. Your database will be "housed" on the server. Your application can either be run from the server OR any other individual pc on the network. With proper programming and design styles it need not be unsecure. Any data entry will be saved "recorded" …

Member Avatar for AndreRet
0
2K
Member Avatar for aparnesh

I'm not that cluded up on the Datashape properties, but from a bit of research, try and drop the "1" after .Datashape.1... See the following link - [URL="http://http://www.a1vbcode.com/vbtip-102.asp"]http://http://www.a1vbcode.com/vbtip-102.asp[/URL] Their quote as follows - [QUOTE]As you probably know, a shaped ADO recordset lets you contain a hierarchical structure (parent/child records) in …

Member Avatar for AndreRet
0
704
Member Avatar for M SRINIVAS

Wow!!!, or should I say ouch. lol First of all you have set your datagrid's datasource to the same recordset TWICE. [QUOTE]Set DataReport1.DataSource = rs_cash_rd Set DataReport1.DataSource = rs_cash_rd.DataSource [/QUOTE] The first one is correct - Set DataReport1.DataSource = rs_cash_rd Secondly, what text are you getting from your combobox on …

Member Avatar for AndreRet
0
142
Member Avatar for imolorhe

What exactly are you having problems with? Please elaborate more so we can help you solve your problem. Mention what you have tried so far, where the problem occur etc.

Member Avatar for imolorhe
0
65
Member Avatar for Sarama2030

Atched is a sample of the web browser. Click on 'Project - References' to see what is referenced to make the browser work. As far as your password generator is concerned, what exactly are you planning to do?

Member Avatar for neosonic
0
1K
Member Avatar for coollife

Yes it is possible. I must however warn you that you will be writing into your systems registry to make it possible. Make a backup of your drive BEFORE attempting any changes to registry. We at Daniweb or anywhere else do not take responsibilty for any system crashes...... See the …

Member Avatar for AndreRet
0
72
Member Avatar for PheNz

There is an easier way.... You need to set your datagrid to a recordsource property. (set datagrid.datasource = rs) You then select the record you need and add the data to the textbox. [CODE]Text1.Text = rs!YourDataFieldName[/CODE] If you want to add the text when you click on a selected grid …

Member Avatar for AndreRet
0
342
Member Avatar for coollife

Yu can not change an exe to a dll (dynamic link library). The one is an application, the other a library file. dll's can be written from WITHIN vb, but can not be converted one way or the other.

Member Avatar for AndreRet
0
32
Member Avatar for TenaciousBey

Attached is a calculator app I have done quite a while agos. It covers more functions like sqr root etc. By using the keypress event, look at the attachment to get the ascii character for the key pressed and use that in your code i.e. - [CODE]If KeyAscii = 50 …

Member Avatar for Romil797
-1
2K
Member Avatar for bsewell

As above, swop your code around, FIRST open RS and then SET GRID Property. If you are not using anything else from RS, you can close it now. Remember that to use the refresh property afterwards will also result in an error because you have closed RS. [CODE]Set datagrid1.DataSource = …

Member Avatar for AndreRet
0
163
Member Avatar for adamsn

I hope that this is what you are looking for.... Add a command button to your form. Set its tabindex property to 1 more than your textbox where the number to be exponened will be entered, and set its default property to "True". [CODE]Function Power2(ByVal exponent As Long) As Long …

Member Avatar for AndreRet
0
798
Member Avatar for abu taher

vb5prgrmr Hit the nail on the head. rs232 cable is the way to start. The easiest is to start off with a diagram on what you plan to read from the connected pheripheral (machine/appliance) and the code from there using his links to many examples. Good luck with this new …

Member Avatar for AndreRet
0
160
Member Avatar for pytup

Go for the following - Create a databse with Login Details, Username, Password and Login Age. This can be done with Access, sql, mysql etc. with the correct connection string. Either create your app with a start up screen where the data is empty as in - [CODE]If rsLogin.BOF OR …

Member Avatar for akhileshbc
0
128
Member Avatar for wilder1926

It seems you have a problem in solving date/Times solutions. What exactly do you want to achieve with your code? I presume that the result should show up in your datagrid? Do you want to run reports from certain dates etc? or wouyld you like vb6 app to calculate the …

Member Avatar for Jupiter 2
0
190
Member Avatar for Israelsimba

Try the following - [CODE]With rc .ActiveConnection = deSub.conn .LockType = adLockOptimistic .Source = "select * from cooperatesubs" .Open End With Dim w As Integer Dim x As Integer Dim y As Integer Dim z As Integer Do Until rc.EOF = True y = rc.Fields("copiesgiven") z = rc.Fields("numberofcopies") x = …

Member Avatar for Israelsimba
0
109
Member Avatar for drabsch

First of all, var (variance takes up unneccesary space or memory. Declare your text as an integer. i.e. [CODE]dim x as Integer x = Text1.Text [/CODE] The next question is? - Where do you want to copy the the temperature Integer? Into a database or just for calculation. There is …

Member Avatar for drabsch
0
108
Member Avatar for ronyyy
Re: SMS

The following should help a lot - You need to register on [URL="http://www.clickatell.co.za"]http://www.clickatell.co.za[/URL] Look at attachment -

Member Avatar for AndreRet
0
150
Member Avatar for xirosen

Try the following site where there is quite a few treeview samples. Sure you will find your answer there. [URL="http://http://www.vbcode.com/Asp/code.asp"]http://http://www.vbcode.com/Asp/code.asp[/URL]

Member Avatar for AndreRet
0
80
Member Avatar for abu taher

Abu, Try the following. Yes you can display more than 1 form, Just set the focus to the form you need. Remember that every form takes up memory, slowing your application!!!! [CODE]Public Sub LoadAllForms() Dim Form As Form For Each Form In Forms Form.Show Next Form Form1.Show 1 End Sub[/CODE] …

Member Avatar for AndreRet
0
127
Member Avatar for nareshkumar131

try and use something like - [CODE]Text1.Text = dtPicker1,Value Text1.Text = Format(Text1.Text, "dd,mm,yy")[/CODE] Hope this helps...

Member Avatar for AndreRet
0
230
Member Avatar for deftones

Try this link to a previous discussion. It might put you on the correct path to a solution. [URL="http://http://www.daniweb.com/forums/thread134994.html"]http://http://www.daniweb.com/forums/thread134994.html[/URL] or to read up more on randomize and get some sample code go to - [URL="http://http://www.vbexplorer.com/VBExplorer/random/random_numbers_1.asp"]http://http://www.vbexplorer.com/VBExplorer/random/random_numbers_1.asp[/URL] This link discuss the actual card game with sample code...

Member Avatar for deftones
0
75
Member Avatar for jomamik

Attached is sample code. Very important though is to remember that the field specified in sFieldName, must have a binary field type (ie. OLE Object in access) in your table....

Member Avatar for MansoorAhmedK
0
254
Member Avatar for sting23

Sorry my friend, you are in the wrong forum... Looks like PHP??? not sure. Try a different forum, I'm sure someone will help there. Good luck.

Member Avatar for muzaffar85
-2
128
Member Avatar for EntangledDesi

I agree with vb5prgrmr, Sample 1 (PASS) is the easiest and safest way of having the name available for ANY form...

Member Avatar for EntangledDesi
0
390
Member Avatar for rakky

Try the following connection string page. Just search for the sql you are running, i.e. 2008, 2003 etc. [URL="http://http://www.connectionstrings.com/sql-server-2008"]http://http://www.connectionstrings.com/sql-server-2008[/URL] Hope this solves your hassles at connecting...

Member Avatar for AndreRet
0
138
Member Avatar for samira1993

Can't someone just bomb this #$@%&^$% (Samira1993) out of here!!!!! I hate lazy people, especially arrogant ones!

Member Avatar for AndreRet
0
481
Member Avatar for ivankenny

Try the following - [CODE]Dim x as Integer, y as Integer, z as Integer x = Val(txtQan.Text) y = Val(txtSalesQan.Text) z = x - y rsQan!Qauntity = z rsQan.Update 'rsQan is your recordset 'Qauntity is your field name[/CODE] Hope this solves your problem.

Member Avatar for AndreRet
0
146
Member Avatar for sting23

With all this code, (my apollogies, I have not read through all of this) what are you trying to do? Do you receive an error or is it something you want to change?

Member Avatar for AndreRet
1
167
Member Avatar for sting23

This is unfortunately a poll which I have started myself... Ignore the pole and look at the actual Zip file, there is numerous data logins, and connection strings availabl;e which will help you on the correct path... [URL="http://http://www.daniweb.com/forums/post989850.html#post989850"]http://http://www.daniweb.com/forums/post989850.html#post989850[/URL] Hope you solve your problem...

Member Avatar for AndreRet
0
123
Member Avatar for Israelsimba

Your connection string is faulty. You need to declare the connection first. [CODE]Dim conn As ADODB.Connection Set conn = New ADODB.Connection conn.Open "PROVIDER=Microsoft.Jet.OLEDB.3.51;Data Source=C:\subscriptions2.mdb" 'Ensure that you have referenced MS ActiveX Data Objects Library in Project/Refrences. 'You can also use Jet 4.0 as below conn.Open "PROVIDER= Microsoft.Jet.OLEDB.4.0;persist security info=false;data source …

Member Avatar for AndreRet
0
165
Member Avatar for 1pal4u

Try the following link that explains random WITHOUT duplications or errors in detail... [URL="http://http://http://www.vbexplorer.com/VBE..._numbers_1.asp"]http://http://http://www.vbexplorer.com/VBE..._numbers_1.asp[/URL]

Member Avatar for AndreRet
-1
167
Member Avatar for VINOD_2553

Firstly select MS Datagrid from components. Add the grid to your form and the use the following code - [CODE]Private WithEvents cnGrid As ADODB.Connection Private WithEvents rsGrid As ADODB.Recordset 'In your command button etc. click event add the following Set rsGrid = New ADODB.Recordset rsGrid.Open "SELECT * FROM YourTableName ORDER …

Member Avatar for AndreRet
0
165
Member Avatar for icedece

You can also eliminate the message box, and keep the focus on the textbox/Inputbox if any value other than an integer has been entered i.e. - [CODE]If Not IsNumeric(distance) Then SendKeys "{BackSpace}" End If[/CODE]

Member Avatar for AndreRet
0
126
Member Avatar for Salman Attari

As follows - [CODE]Set rsItemName = New ADODB.Recordset rsItemName.Open "......", cnItemNAme, adOpenStatic, adLockOptimistic 'Where open is your connection string If rsItemName.BOF = True Then Exit Sub ElseIf rsItemName.EOF = True Then Exit Sub Else Do While rsItemName.EOF = False cmbItemName.AddItem rsItemName("ItemCode") 'ItemCode is the name of your field rsItemName.MoveNext Loop …

Member Avatar for AndreRet
0
91
Member Avatar for AndreRet

Let you choose between all printers available on your pc or network. Download zip and enjoy. Royal free.

1
995
Member Avatar for r_k46211

It looks like your connection string is faulty. Try the following links to get the correct connection string, and some troubleshoot solutions. [URL="http://www.connectionstrings.com/sql-server-2005"]http://www.connectionstrings.com/sql-server-2005[/URL] [URL="http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx"]http://blogs.msdn.com/sql_protocols/archive/2006/02/21/536201.aspx[/URL]

Member Avatar for AndreRet
0
128
Member Avatar for samira1993

I agree 100% vb5prgrmr. It seems that he wants somebody to do his work FOR him!!! and reckons by posting it a million times will actually help. It is VERY annoying to read the same post under a different heading!!! Please post 1 ONE post and we WILL try and …

Member Avatar for AndreRet
-1
125
Member Avatar for abu taher

First close your recordset. Re-open the recordset with the new date criteria and then refresh the grid. [CODE]RS.close RS.Open "......................." Grd.Refresh[/CODE] Hope this helps Abu

Member Avatar for abu taher
0
314
Member Avatar for Lida_pink

Try the following to get the sum of an integer - [CODE]Private Sub Command1_Click() On Error GoTo Errorhandler x = InputBox("Please Enter an Integer.", , Text1.Text) If x <> "" Then List1.AddItem Str(x) Do While x <> 1 If x Mod 2 = 0 Then x = x / 2 …

Member Avatar for Lida_pink
0
723
Member Avatar for eppitis1

Something from a very long time ago. Will help you though to populate your grid with search functions included. See attachment.

Member Avatar for AndreRet
0
120
Member Avatar for fej04cool

I assume you are talking about the Data tool? Place the tool on your form. Select Database Name and click on the cmd button with ... on it to open the connection wizard. Select the database you want to connect to and scroll down to RecordSource. Select the table source …

Member Avatar for AndreRet
0
60
Member Avatar for Domus BRASIL

You can also try your textbox format - [CODE]Text1.text = Format(Text1.text, "### ###.##") 'Where ## is the actual number entered into text box.[/CODE] You can also try this sub I've done some while back [CODE]Public Function Txtnumdeci(Key As Integer, Strinfo As String) As Integer Dim Deciprs As Boolean Dim Ctr …

Member Avatar for AndreRet
-1
160
Member Avatar for Israelsimba

Follow my comment lines within your code... [CODE]Private Sub cmdcnsearch_Click() 'dim sql as string sql = "Select companyname,companysize,country,city from cooperate where CSTR(accnumber)='" & txtcnsearch.Text & "'" 'sql = "Select companyname,companysize,country,city from 'cooperate where accnumber=" & "'" & txtcnsearch.Text & "'" 'remove the cstr for the value you are looking for …

Member Avatar for AndreRet
0
147
Member Avatar for phpbeginners

Try something like the following: [CODE]Dim cnn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim ts As TextStream, fill As File Dim fso As New FileSystemObject Dim app As String Dim i As Integer Dim sFields As String Dim sData As String Dim myPath As String Dim fld As …

Member Avatar for phpbeginners
0
565
Member Avatar for AndreRet

Ever felt like you need to do SOMETHING, but you don't know what. You are sitting at your pc, thinking about coding and finishing that app. 10 minutes later you are so bored you start surfing. 20 minutes later you start a game. 10 minutes later you install something. You …

Member Avatar for William Hemsworth
0
437
Member Avatar for ravikatare
Member Avatar for coollife

Select your combobox, in the properties window scroll down to 'sorted' and change the property value to "true". This will load the data alphabetically. When you add any text to the combo box AFTER you selected it, it will automatically select text available in there in that alphabet letter, i.e. …

Member Avatar for AndreRet
0
319
Member Avatar for manjupapu2006

Why don't you just show all the open complaints in a datagrid? See the following link to connect to a datagrid - [url]http://www.daniweb.com/forums/thread225349.html[/url] Hope this helps.

Member Avatar for mathet
0
699

The End.