12,155 Topics
Have the following code but can only get it to work when I enter nothing into the answer box then it says sorry..... but if i enter any# or a letter it doesnt do anything.. wordpad will not accept all the end if's and else statements either. only one it …
can u give me any clue on how to do it?
i m using two list box one(check style list box) is for food item another(simple list box) is for cost.when i selects any fooditem then a input will occour for entry of food quantity.and after selecting all items and entry of their quantity they will store in ms access databse. …
Hi To All, How can the Network LAN Connection to be Enabled/Disabled through Vb Code
hello! I am designing an attendance system and i have a problem regarding marking the attendance. I don't want to use datagrid as i cant mark the attendance there ie i want to use checkboxes to mark the attendance. I'll provide a screenshot of how the form should look like. …
i m here to ask u a importnt question... is there any way to scroll down or up the text boxes on frames... i mean to say, i have one form, and a frame, and so many text boxes on frame, that all can not b shown at a time, …
I am developing a tool using java swing. In it I have to read a .vbs file. I have used the following code for it. Scanner fileReader1 = new Scanner(new File(fileName),"US-ASCII"); while (fileReader1.hasNext()) { System.out.println(fileReader1.nextLine()); } where fileName is valid .vbs file path This is working only for .vbs files …
A text box show current date(like 24-03-2009). I write in other textbox 3. I want when I write 3 then the textbox (24-03-2009) automatically increase month like 24-06-2009. how it possible?
I have a form on my vb 6.0, i need to change the appearance. In the sense that, i can change its transparency or opacity of the way how the form looks. Is there any way possible i can do that ?
I want to load values from a lstview column to a combobox in another form. The problem is that, my combobox style is 2 - Dropdown List and the values in it are from my database field. That's where the error occurs. Saying [ICODE]Text property is read only.[/ICODE] I could …
Hey everyone, I just registered here and I am really interested in learning and practicing coding as I want to make a career out of it when I am older. I am currently a sophomore in high school at the age of 16! I have taken a few computer classes …
I am a 30 year old programmer with 12 years of experience. Primarily the company I work for develops in Alaska Xbase++, but I started my programming career with VB6 and CA-Clipper. I am transitioning back to VB after a ten year hiatus to find many many changes since the …
here is the current code i have : [code] Sub Remove_Blank_From_PivotTable1() ' The purpose of this macro is to remove the word (blank) from apprearing ' on any pivot table report.' Dim counter As Integer ' setting up a counter to loop through the worksheet Dim lastRow As Integer, lastColumn …
please help me. i need codes. How to Convert Dotted Decimal to Binary and Vice Versa in VB6. and a short explanation for the code.. please...
Hi, i'm ann from philippines:p and i just want to ask how to install the program i made in visual basic 6?:?: do i need to make an installer?:rolleyes: can anyone teach me how? :sad: Pleaszzzzzzzzzzeeee...:cheesy: thanks...:lol: Note: please be specific.:!:
Please help me. What is a code how to convert dotted decimal to binary and vice versa. and small explanation
Hi there! And Thanks for your help.- I've installed VB 5 Enterprise edition, and amn trying to begin self-guided studies of this language. When trying to use "Microsoft Common Dialog Control 5.0", as told in a book, cannot find it -> CTRL + T and Componets. Instead, have a "Microsoft …
Am trying to get this code to work where the user enters n rock,paper,or scissors and the computer randomly picks as well, it then states what each choose, once u click ok it tells who won the match but my code once it shows the 1st winner result have to …
i am creating a program that will log into a copier's web interface and automatically enter information without the user seeing. I found a code that will log into yahoo mail and click the submit button WebBrowser1.Navigate(TextBox1.Text) WebBrowser1.Document.GetElementById("Admin").SetAttribute("value", TextBox3.Text) WebBrowser1.Document.GetElementById("PASS").SetAttribute("value", TextBox4.Text) WebBrowser1.Document.GetElementById(".submit").InvokeMember("click") this code does not work on the copiers …
I am just having trouble with the beginning stages here. I am just very confused on different syntax terms. I have a book here "Microsoft Visual C++.net" with all the installation and whatnot with it. It doesnt use the normal cin and cout but used Console::WriteLine and what not. Is …
Hi guys. I am having a bit of trouble with the listview control at the moment. I am trying to change the position of an item in the listview but I have no idea how to do so. I am also trying to set a command button which can "click" …
Am trying to get this code to work where the user enters n rock,paper,or scissors and the computer randomly picks as well, it then states what each choose, once u click ok it tells who won the match but my code once it shows the 1st winner result have to …
Hello guys and Good day! I just want a little help on how to get the total number of space from the left until the word starts and display the total space in msgbox.. Example: [Code=vb] combo1.AddItem = " Bank " [/code] In this example the total number of space …
can you help my with the code for my cmdDone to add a new record into my database, i can't seem to get it here is my project [URL="http://dl.dropbox.com/u/9153815/Unknown.rar"]http://dl.dropbox.com/u/9153815/Unknown.rar[/URL] no luck even with tutorials
Dear Daniweb Team I am new to vb.net and doing some experiments with it. Trying to make a small application for personal use. I have some WORD files, which are formatted using bold, italic and colors etc. I want to copy entire content of word file into SQL Server table …
hi guys, does anyone have an idea how i could generate a monthly,daily or annual report using sql statement since i have tried with the one for daily and i keep getting the error 'now' is not a recognized function name. i want to get the total of Amount column …
Hi all. I have error with script below : Dim sql as string sql = "select * from [table] where [field] like '%" & text1.text & "%'" how must I write "%" after "like"?
Hi, I'm new to Access and have only had one online course in it recently. I want to try and build a Home Inspection database that would allow me to add images for the findings during a Home Inspection. I've found a lot of bits and pieces of information on …
I got a runtime error 3705 "Operation is not allowed when the object is open". When I click debug, it highlights the connection object I made in the module. I have a form named frmUser. When I click mnu_User from the mdiForm, I got a runtime error 3705, but when …
[B][COLOR="Red"]how do i add the numbers in label1 and label2 and i want it to appear at label3?[/COLOR][/B]
[CODE]Private Sub cmdDeduct_Click() Dim sConn As String, xQuantity As Integer, xStockTotal As Integer, xPre As Integer Set oConn = New ADODB.Connection Set rsDeduct = New ADODB.Recordset sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\inventory.mdb;Persist Security Info=False" oConn.Open sConn If LenB(cmbItemName.Text) = 0 Then MsgBox "You have to select an item …
i am using floppy as ATM card.. am thinking that using the serial number of the floppy, i can check with the database and confirm it and loging the user.. but i have problem in getting the code for getting the code for getting the serial number of the media.. …
I have an official version of Visual Studio 2008 Team System. I use Visual Basic 2008 from Visual Studio 2008 Team System. With Visual Basic 2008, I built several Windows application. [B][COLOR="Green"]I want to use Visual Studio 2010 Premium [/COLOR][/B] [COLOR="Red"]Upgrade scenario[/COLOR] I have three Upgrade questions: 1.Can I upgrade …
I would like to make it so that when a character (picture or shape) moves it leaves a trail behind it that keeps getting more transparent. how would i start. If you jump the trail should follow up then down. Can anyone help me? Thanks
How do I check if a form is open (not only loaded, but also open)
I have a small company Database that tracks our repair orders. I have a query that I would like to execute based on criteria that the user inputs. I am new to VBA so most of my code is based on google research. I took a technique of wrapping my …
How can i add treeview control to my project. I cannot find this in components.
[CODE] Private Sub cmdAdd_Click() Dim sConn As String, xQuantity As Integer, xStockTotal As Integer Set oConn = New ADODB.Connection Set rsAdd = New ADODB.Recordset sConn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\inventory.mdb;Persist Security Info=False" oConn.Open sConn If LenB(cmbItemName.Text) = 0 Then MsgBox "You have to select an item from the …
I'm writing a text editor for my own use ( I'm "home learning") where I want to be able to leave comments for myself, like in code section of the VB express IDE. I have figured out how to get the Integer Location of the apostrophy, but can't get it …
I hope that this question is not out of place here. I have an access 2007 database for which I made a perfectly functioning simple "front end" program in VB6. That was back in XP or Vista days. I hadn't used it since the switch to Windows 7, and when …
i want code for search in vb6.if i give see it will search seeni,seenivasan,seetha,mooseetha,etc
Hi all, My name is Jeremy. I am a 31yr old, part time student hoping to get into an IT job while earning my CS degree. I got a late start in life due to a rough upbringing, and I need some advice on how to break into the field …
Normally, when populating controls with data from a database I create a connection and then pass a SQL statement to create a DataReader. I then loop through the DataReader and populate the controls. Because I am creating the SQL statement on the fly I can query the database joining on …
problem is in form5 when i add stock it didn't refresh... just download my attach file "datagridprob.zip" and try to correct my code in "add_stock form" then if you got it right kindly post your code here...thanks...
Hi again, sorry for yet another thread. I am using the KeyDown function in my form and it is not able to perform because of the other controls. For example, there is a text box in the form. Once the form has loaded, when I press vbKeyRight, my code does …
how to connect adobe photoshop to visual basic 6.0?
[CODE] Private Sub Command1_Click() Dim xSold As Integer Set db = New ADODB.Connection db.CursorLocation = adUseClient db.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0; Data Source=" & App.Path & "\inventory.mdb" Set rs = New ADODB.Recordset rs.Open "SELECT * FROM storage WHERE Current Stock = '" & Text1.Text & "'", db, adOpenStatic, adLockOptimistic If rs.BOF = True …
Hi, Can anybody help. How to scroll data in DataList by using mouse scroll. DataList have no Scroll method.
I have multiple projects in the same database that use the same dll code. Currently I have to define in the dll what the project names are and what the unc path is that each particular project needs to reference for it's excel file. The excel file contains notes that …
[URL="http://www.daniweb.com/forums/thread341763.html"]http://www.daniweb.com/forums/thread341763.html[/URL] Regards to that, i also wanted the system not to be able to delete Administrator Accounts via my code also posted there. Here's the code again: [CODE] Private Sub cmdDelete_Click() ' On Error GoTo err Dim intYN intYN = MsgBox("You are about to delete a record." & vbCrLf & …
The End.