Home > Visual Basic Programming
Visual Basic Programming
Visual Basic Programming forum discussing coding strategies, development and techniques. Go from prototype to product quickly using this robust platform.
Help
I am using an InputBox. A person enters a number and a MessageBox should display showing the sum of all the integers from 1 to the value entered. How do I write the code for this.
answer(1) view(188) status(

)
answer(1) view(368) status(

)
Problem with macro recorder in Excel 2002
Hi All,
I'm sure that this question has beeen asked many times before me, but I need to know this in a very immediate way. I have recorded a macro in Excel (2002) that works perfectly well. That is, it works for the file that I used to c...
answer(1) view(885) status(

)
Another HTML prob
Hi, im back again, I am making a html editor and currently have two forms. One the main form and a second form choose the background colour. I was wondering if it was possible for text to appear in a text box in form 1 by click on a button ...
answer(1) view(826) status(

)
Command Button Question
Ive been writing vb6 code for about 3 months now, but cant find anything on making two command buttons switch places, like when you mouseover one then it switches places with the other and vice versa. Ive searched google, and found nothing,...
answer(2) view(244) status(

)
VBA Combo Box Help Needed - Excel
I have written a program in Excel using VBA. In the program, I dynamically create combo boxes based on an external file. So, the amount of the combo boxes vary depending on the file used. For each combo box I need to have code for the Ch...
answer(0) view(581) status(

)
Autofill Forms
I have a form with a number of text fields that I programmed to autofill with information from an Access db. I also have some fields that are dropdown lists (<option> tags) and some that have radio buttons. Is it possible to autofil...
answer(1) view(680) status(

)
adding field to msaccess table at run time through VB
hello,
i have created a table which has x number of fields. However at run time i have a form which accepts additional fields which need to be added to the table structure. Is this possible? If yes, then how..or if no..then is there any o...
answer(0) view(520) status(

)
Data validation FORMS
If the date field is empty, then display an error message; that bit works. When I click on OK, the form submits, which shouldnę° happen; any ideas?
Code:
<input type="submit" name="btnSubmit" va...
answer(2) view(650) status(

)
Booking Calender Dates Form Source Code!!!
HI ppl, just wanted to knw if any1 has any soucre code lying abt for a calender style booking form. The thing is that as part of a group project at uni we have to make a system n one obj is to have a booking form for marquees. The company h...
answer(0) view(130) status(

)
Database Adapter Error in VB.NET
I am getting this error:
An unhandled exception of type 'System.NullReferenceException' occurred in 8.exe
Additional information: Object reference not set to an instance of an object.
Which points at this piece of code:
DBCareerAdapte...
answer(2) view(861) status(

)
SQL in Visual Basic
I have sql statement in my Visual Basic code
"SELECT * from Location WHERE Description = '" & txtName & "'"
where txtName is an object on the VB form. When the user input includes
a single quote, i get a syntax e...
answer(2) view(813) status(

)
Access
Hi,
How can I establish what the last record is that was added to a table in an access database?
The reason I need to do is that i am adding a record to a database through code and i need to establish what the id fo that record is. so t...
answer(3) view(557) status(

)
vb.net image move?
hi i would like a image in my vb.net programe to move on thescreen when a user clicks a button, how would i do this?
Regards
Homer
answer(0) view(383) status(

)
My Question Again
Private Sub Command1_Click()
On Error GoTo trap
Dim timeout As Variant
Dim sende As String
Dim checksum As String
Dim i
MSCmm1.PortOpen = True
Command1.Enabled = False
sende = ""
empfang = ""
'sende = Chr$(&...
answer(1) view(206) status(

)
USB Communication
hi all
how would i scan for whats ports a machine has , and have it put into a combobox for selection reasons
thanks in advance
answer(0) view(988) status(

)
Call my pc from a phone.. Please help me!!!
with code shoul i use if i want to call my pc from a phone, and for example press 7, and then my pc restart?
I use a K56 modem, and visual basic 5, i will make the program with mscomm1...
Please write to me in icq or msn
answer(0) view(525) status(

)
Transfering Autofield & fields over several tables
MS Access 2000 db'er
Hi all,
My name is mark and I am a keen MS Access 2000 db'er,
Q 1) I would like to know how to pass a value from one field to another and to different tables with-in the same db. (hopefully as easy as selecting the r...
answer(1) view(140) status(

)
sample code for making a package simillar to word document
hai ,
Being a starter i feel bit difficuilt in building up this package and it would of great if any one can send me the sample code which has the property of similiar to ms word somthing like having File,Edit,Formate and their propertie...
answer(1) view(473) status(

)
Insert Multiple records from Web Form
I am using Dreamweaver to create most of my VBscript. I do tinker with it but am not a programmer. I need to know if there is an easy way to write some sort of loop that will allow a multiple record insert off of one form.
The web form...
answer(5) view(859) status(

)
Changing msgbox icon
Is there any code for changing msgbox icon in vb6?
I want to change default icon to my custom icon.
answer(1) view(247) status(

)
creating & desining crystal report using VB 6.0
Hai,
Please help me to find the way of creating & desining Crystal report in runtime using VB 6.0. Also I am unable to filter the record using 2 table for SQL server.
Please help me to find solution
Thank you!!!
answer(1) view(63) status(

)
Reading data from Comm Port
Hi All,
I am a novice in VB development. I want to capture data from one of the Chemical analyzer machines which has it's printer within itself, but it does has a comm port. Now I want to capture data sent by it's comm port on my PC. I ha...
answer(1) view(963) status(

)
Compare 2 combo boxes and get a text result
I know I am close, but I am very rusty at this VBA
stuff.
I get a result, but it happens for each option I choose from
my combo boxes.
Basically this is the whole picture. I have this matrix that am
following. I have 5 values for each co...
answer(3) view(575) status(

)
Help with Sequential Access Files
Create an application that read a series of numbers from a sequential access file. Each series is separated by a 0. The program should then calculate the average of each series of numbers and an average of all averages. Display your answers...
answer(1) view(479) status(

)
Access Table Display Control
Hi all
What I would like to do is
In Table design view, On the Lookup tab of a text field there are
three properties that I would like to set with code
Display Control set to List Box
Row source Type set to Value List
Row So...
answer(3) view(648) status(

)
Opening a PDF File through VB
Help..I have a VB form with a text box that lists the path of various PDF files. Does anybody know the code to open the PDF file through the VB environment. ( I've got it to work with Excel and Word documents but not PDF'S)
Many Thanks.
...
answer(2) view(165) status(

)
Empty Recordset Problem
Hi every one ! I am new to the VBA and wondering if some one can hlep me, I am trying to run a simple Select statement by using the CurrentDb.OpenRecordset function which works fine if there are more than zero records but if Select statemen...
answer(5) view(480) status(

)
Use Visual Basic functions from vbs code
I'm trying to create a file in Visual Basic 6 whose functions can be access via some code in vbs file. I have never done this before but it seems like I have to create an ActiveX Component in Visual Basic. Am I pointing in the right directi...
answer(1) view(140) status(

)
Please Help
URL
Ok For A Project I Have To Make A Program That Will Have One Userform With Textboxes
And When The User Clicks On A Button All Of The Information Will Be Staored In The Memberarry(10).fullname So Far I Can Not Get This To Work So Can Som...
answer(1) view(621) status(

)