12,425 Topics

Member Avatar for
Member Avatar for HassaanJalil

**I am building a hospital managment system as a practice in visual basic. I am having some problem I want to write or read data from particular row or column with visual basics How do I o it? Thanks in Advance -Hassaan bin Jalil**

0
146
Member Avatar for jovstudios

Dim Dbl1 As Double Dim Dbl2 As Double Dim Aux1 As String Dim qtyadd As String Dim subtotaladd As String Dim itm As MSComctlLib.ListItem Dim i As Integer Set itm = ListView1.FindItem(txtCode.Text) If itm Is Nothing Then ListView1.ListItems.Add , , txtCode.Text ListView1.ListItems.Item(ListView1.ListItems.Count).ListSubItems.Add , , txtproductname.Text ListView1.ListItems.Item(ListView1.ListItems.Count).ListSubItems.Add , , txtqty.Text ListView1.ListItems.Item(ListView1.ListItems.Count).ListSubItems.Add …

Member Avatar for AndreRet
0
163
Member Avatar for samirkhzem

just want to know the correct synthax for creating a table in access database using vb myqry = "CREATE TABLE HoldInvoide'" & k & "'(Barcode varchar(20) not null Primary Key, ItemName varchar(40) not null, Quantity int , Price double, Total double)" k is a variable i want to create a …

Member Avatar for Reverend Jim
0
337
Member Avatar for 2mhzbrain

experts please help on querying and counting the frequency of data, i want to count the number of data appearance then put it on like this: Name----Lastname----Relationship----Freq Egie----Tayag-------Brother---------2 i will place the result on a report counting the number of a person's visit on the theme park. TIA ^_^ SELECT …

Member Avatar for 2mhzbrain
0
156
Member Avatar for verbalurbs

Hello I am trying to display an ID which is a primary key in my table by selecting the corresponding name in my table. the names have been saved in a combo box and depending on the name selected the textbox will display that Id. the code I have so …

Member Avatar for martinhosking
0
409
Member Avatar for kimangel

Hi Experts, my sql query below returns 0 value, though I have entries in my data base. Please help me check my codes below; Private Sub cmdSearch_Click() Dim sTrID As String sTrID = txtSearch.Text Dim Total As Integer Set rs = New ADODB.Recordset rs.Open "Select Count(DateIn) as Total from Time_In …

Member Avatar for kimangel
0
304
Member Avatar for mfbi23681

I'm new with VB6 and i'm a self learner.. I need help with coding for generating data report by filtering between 2 dates using 2 dtpickers. i'm using data environment and the dates are in 1 field

Member Avatar for AndreRet
0
52
Member Avatar for jovstudios

Hello Guys Help Me To Count The Item in Listview and Update it. Scenario.. Customer Buy 3 Milk and 2 Nescafe then the Cashier Punch it Item-----------------Qty Milk-------------------2 Nescafe---------------2 The Cashier Forget to Punch the 1 Milk. the Cashier should Punch Another One Milk..But My Code This is What Happen …

Member Avatar for jovstudios
0
158
Member Avatar for Papa_Don

Hi Group! I need to write the data from multiple TextBoxes (which I've moved to individual string names) into one text file (miscflds.txt). These individual strings will need to be written one on top of the other. To be clear, it will need to look like this: Item A Item …

Member Avatar for TnTinMN
0
618
Member Avatar for maytham

Private Sub Command1_Click() Dim a, b, cc As Integer Dim p(3), d(3), e(3), t(3), h(3), w(3), c(3), f(6) As Integer If Text4.Text <> "" Then strfile = Text4.Text Open strfile For Input As #1 For i = 1 To 3 Input #1, p(i), d(i), h(i), w(i) Next i Close #i …

Member Avatar for maytham
0
269
Member Avatar for Tinnin

Hi All, I'm trying to save an incoming email as a .txt document but I'm having some trouble with the VBA. My procedure is as follows: Sub ConvertToPlainAndSaveAs(Mymail As MailItem) Dim strID As String Dim objMail As Outlook.MailItem strID = Mymail.EntryID Set objMail = Application.Session.GetItemFromID(strID) objMail.BodyFormat = olFormatPlain objMail.SaveAs "C:\Users\Me\Documents\path\to\Test.txt", …

Member Avatar for Tinnin
0
144
Member Avatar for Papa_Don

Group, The SQL Server (I'm using the edition that comes with Visual Studio 2010 Express) is different in every aspect form the database(s) that existed in the UNIX based program I work with over the last 15 years. There is much to learn and understand. With that said, I've connected …

Member Avatar for Reverend Jim
0
183
Member Avatar for aderogba08

I'm making a calculator, and I want the question(text) to shift the left when the textbox is full. So as you type, it shifts to the left(only when the textbox is full) to make the newly typed question visible. In a normal textbox the text shifts to the right making …

Member Avatar for aderogba08
0
136
Member Avatar for kayjenx

I've been battling with this for the pass few days. I have an access03 database that is used to track training that we give to employees. i had a form that has, the training info and then a subform that lists all the attendees and their scores. Now I was …

Member Avatar for tirror69
0
210
Member Avatar for archangel1177

Hello, its been a while since I have been here but I am in need of assistance. First off I haven done this in a while so to say that I am rusty is an understatement. What I am trying to do is create a form that allows for input …

Member Avatar for archangel1177
0
182
Member Avatar for Ayesha.Shahnawaz

Hi, I've never really created a login screen in VB and connected it to a table in MS Access before. So I'm supposed to create a login screen and after gaining access to it, a main menu form needs to show up which would be connected to the rest of …

Member Avatar for Ayesha.Shahnawaz
0
321
Member Avatar for kimangel

Hi experts, I have a Daily Records form of an employee. my fields are; search box search button datefrom (datepicker) dateto(datepicker) datagridview (fields are Employees_IdNo, DateIn, TimeIn and TimeOut) totaldays totalhours The scenario is this, first search for an employee using Employee number, set the datefrom and dateto to two …

Member Avatar for kimangel
0
197
Member Avatar for ScarWars9

Hello, I am curious about starting to use XML concepts within my visual basic.NET applications. I have seen a few things on the internet, but I'm still a little confused on how to start using XML. I would really appreciate if someone could explain to me how to use XML. …

Member Avatar for tinstaafl
0
301
Member Avatar for rishif2

how to add scroll bars to mdi form when the height of child form is greater than the actual height of mdi parent form . . .

Member Avatar for rishif2
0
131
Member Avatar for ahmad.aiman.35

hello guys, can help me out? My assignment need to do a registration system. Student register use identification card(put in mycard reader) and the existing database(already have student data) will recognize and mark the student attendance and the system also can check how many people are coming for the event. …

Member Avatar for AndreRet
0
192
Member Avatar for silversurf

Hello, Here is the scenario : I have the follwoing sales return from in my software: ![sales_return1](/attachments/large/3/sales_return1.JPG "sales_return1") In the from I have tow listview control, the left is Listview and the right is Listview1. I have the following code in procedure : Dim xsprice As String Dim xsprice1 As …

Member Avatar for hyesin
0
1K
Member Avatar for rahul.gour

If .SubItems(19) = "Y" Then chkTax.Value = 1 txtTaxRate.Text = .SubItems(16) Else chkTax.Value = 0 txtTaxRate.Text = "" End If having problem Compilation error : method or data member not found with this code chktax is a check box.

Member Avatar for AndreRet
0
176
Member Avatar for JakeRivett

How do you go about pausing your code from operating. I want to make an animation by making a picture box visable then another then another but I need a period of time between transitions? How would I go about doing this? boredPic(1, 1).Visible = True boredPic(1, 1).Image = My.Resources.Red …

Member Avatar for Reverend Jim
0
319
Member Avatar for tnputnam

I would really like to be able to compare two cells in visual basic from a database access database in two different tables and the idea is to take one paragraph from one cell and a paragraph from another cell and compare how closely related they are. How would you …

Member Avatar for Reverend Jim
0
104
Member Avatar for pinkxhmile03

what code can i use in my game when i'm upgrading or i will evolve or build ong picture to another picture ? please help me thanks !

Member Avatar for AndreRet
0
87
Member Avatar for fx.eko

When I create data report use VB6 Enterprise, when I add Data Source to that form, I'm get error message "UNHANDLED EXCEPTION AT 0X89067542 IN VB6.EXE : 0XC0000005 : ACCESS VIOLATION READING LOCATION 0X89067542" and VB6.EXE close What happen ??? any body can help me, thanks for advanced Regards, FX …

Member Avatar for AndreRet
0
171
Member Avatar for PinoyDev

Is there a way to open a form in vb6 when they clicked on one of the field in crystal report? Ex. If I want to update certain deposit, when clicking on crystal report, it will open the vb6 form to display for editing.. Ive found 1 in vb.net from …

Member Avatar for AndreRet
0
532
Member Avatar for mikaichan13

I'm having trouble with this: Option Explicit Dim hold1, hold2 As String Public LoginSucceeded As Boolean Private Sub cmdCancel_Click() LoginSucceeded = False Me.Hide Welcome_Scrn.Show End Sub Private Sub cmdOK_Click() With Adodc1.Recordset hold1 = "[Username] like'" + txtUserName.Text + "'" hold2 = "[Password] like'" + txtPassword.Text + "'" If .EOF <> …

Member Avatar for AndreRet
0
150
Member Avatar for josverhoeff

Hi, I am (still) converting an old asp web app / vb6 dll to aspx / vb.net I am now biting on a fairly simple function in vbscript: the execute() function What the vbscript does is the following: It reads in a variable name and its (string) value from a …

Member Avatar for josverhoeff
0
541
Member Avatar for 2mhzbrain

Its all in the title, i want to get 2 dates from user then view them in a data report text labels so we have idea what the report is displaying

Member Avatar for bCubed
0
269
Member Avatar for illusive_blood

hello. i'm only 15 year old and so i dont know much about vb6.0 . i m using a code for a search button that would display the fields in a database(ms access) in textboxes when i select a date from the combobox i used the code: Adodc1.Recordset.Filter = "infodate='" …

Member Avatar for jhai_salvador
0
219
Member Avatar for TnTinMN

[coding virus using vb script .vbs](http://www.daniweb.com/software-development/visual-basic-4-5-6/threads/294413/coding-virus-using-vb-script-.vbs) Granted it is pretty pathetic, but some fool is looking for help to run the code shown.

Member Avatar for deceptikon
0
104
Member Avatar for javanoob101

Hello, I suck at programming, so I'd like some help on createing a .vbs script to disable right mouse clicking on the entirely Is this even possible? Google searching yeilded me nothing usefull... javanoob101

Member Avatar for javanoob101
0
374
Member Avatar for asaness
Member Avatar for kimangel

Hi experts, I have an update form, even without changes made in fields the form will still be updated. How can I code that the form will not update without changes made. Pls help me. Thanks alot. below is my code. Private Sub cmdUpdate_Click() If Trim(txtLastname.Text) = "" Or Trim(txtFirstname.Text) …

Member Avatar for kimangel
0
146
Member Avatar for martin9t9

hello everyone, i have just finished developing my first program that includes a database. i have used instalsheild to make it a file so i can instal it on other PC's. but when i run the program on another computer i get an error, i cant remember what it said …

Member Avatar for adam_k
0
170
Member Avatar for pjns19

Hi all, Looking to extract all HTML tags from a dump of HTML data and put them all in a listbox. I currently have the following code. It displays to me things like HTML HEAD TITLE BODY. But i want things like the IMG and ALT tags. ' Obtain the …

Member Avatar for tinstaafl
0
2K
Member Avatar for Papa_Don

I'm trying to create a form with multiple labels, textboxes and buttons within a panel. The user will fill in their data and click a button that will create a new identical panel with the same labels, textboxes and buttons. I read through the following thread in an effort to …

Member Avatar for Papa_Don
0
3K
Member Avatar for vprakashit

i am tyring to create new project nemmed as car parking system please help to get the password and check the name in database and display the already gathered displays ........please help me ...........<snip>

Member Avatar for <M/>
0
138
Member Avatar for sobias

Hi, I'm doing a software analysis assignemnt which requires me to deal with visual basic. I've never used the language before. I have a loop which I would like to calucate the time taken to complete the loop. Any heads up guys? I want something very simple.

Member Avatar for adam_k
0
248
Member Avatar for wondering_ed

Good day to everyone. I am new to Visual basic and I am having a hard time at school because they dont teach all the codes in visual basic 6.0 and they want us to have self study and all. What a bummer. For our midterm exams, our professor wanted …

Member Avatar for Reverend Jim
0
498
Member Avatar for kimangel

Hi Experts, good day! I have hard time coding the click event when I click cmdTime on the second time a message box will say, "Your first time in for 2/16/13 at 9:00:33 am, Are you sure you want to record this time in, Yes Cancel?" The time 1:22:33 is …

Member Avatar for kimangel
0
183
Member Avatar for lexaeterna

i am making an inquiry kiosk for a certain company and it required to be on a network, with sql server as backend database. is there any way that i can connect to the database which is on the server and fetch data?

Member Avatar for Lethugs
0
666
Member Avatar for Bile

-->>Hope all is well,I've Managed to write code to Open Folders/Browse Folders using Common Dialog... -->>The name of Common Dialog is Folder... -->>But now as I've the Open Button when the Browse Windows Show up,I was wondering how can I... -->>Open the Selected File when User Click the Open Button …

Member Avatar for AndreRet
0
3K
Member Avatar for Ayesha.Shahnawaz

So I've FINALLY gotten my code to work but unfortunately my code's sooo messed up that its displaying something else! As you can see in the picture below, the Flex Grid is displaying the data of "Service" http://i213.photobucket.com/albums/cc228/rose_408/receiptform_zps1a66f838.png http://i213.photobucket.com/albums/cc228/rose_408/service_zps5e886a12.png When its actually supposed to show the data of "Receipt Service"! …

Member Avatar for AndreRet
0
175
Member Avatar for kimangel

Hi Expert, my Option1.value is not save to databse while Option2.value is saving. Pls help me check my code. Thanks Private Sub cmdSave_Click() Set rs = New ADODB.Recordset rs.Open "select*from Employees", cn, adOpenKeyset, adLockOptimistic On Error GoTo err rs.AddNew rs!Employees_IdNo = txtSearch1.Text rs!Lastname = txtLastname1.Text rs!Firstname = txtFirstname1.Text rs!Middle_Initial = …

Member Avatar for kimangel
0
282
Member Avatar for ponnu
Member Avatar for Divinedar

I have the following code that hyperlinks the file to a cell in excel when you type in the file name. I need to alter this code and not sure how. I need for the code that when you type in file name it also finds the filename path and …

Member Avatar for tinstaafl
0
318
Member Avatar for ponnu

I have vb form tht accepts user data.I need to check whether user enters emailid in the correct format ?Please provide suggestion .Thanks in advance

Member Avatar for ponnu
0
249
Member Avatar for Bile

-->>Now I have managed to go through some codes that creates a System Tray Icon... -->>I've managed to create it but something is wrong here that disturbs Me... -->>When I Click on the Tray Icon of My Software it wont Load My Application... -->>That is Say if it was Minimized …

Member Avatar for AndreRet
0
298

The End.