| Thread | Last Post | Replies |
|
| open statement, pathname and file extension | 31 Oct 2004 07:07 GMT | 1 |
I use VBA in MS Excel. I am trying to create files for inputting and saving the data. The code including the open statement is as follow: For k = 1 To NoofFiles Open InFileName(k) For Input As #k
|
| How can I trap an error when using the printer object? | 31 Oct 2004 06:20 GMT | 4 |
I print several text strings in a loop using printer object. After each string is printed I send a printer.newpage. The lines that do the work are: Printer.Print frm.Text1.Text 'print text.
|
| MsgBox return Values --- help please | 30 Oct 2004 23:24 GMT | 2 |
I have this code block setup within my ASP page using VB Script as the main language. I want to be able to return the value of the client side VBScript back to the main page for processing.
|
| Tabbing with Enter key using Keypress | 29 Oct 2004 09:47 GMT | 2 |
Apologies if this thread is in the wrong forum. Having taken the plunge to update from VB4 to Visual Basic.NET, I'm having trouble with some syntax. Specifically, I used to use the Keypress event to send a Tab when the Enter key was pressed:
|
| Extracting Individual Characters from a String | 28 Oct 2004 22:23 GMT | 2 |
I am REALLY new , I have done some simple Basic and QBasic programming, but VB is new to me. I want to make a simple program that takes user input data, for example a VIN Number from a Car and breaks it down into various parts.
|
| Constant value for a string | 28 Oct 2004 10:06 GMT | 3 |
In my errorhandling routine I want to have a standard message. Is it possible to set the message so that the variable can be called from anywhere and will be populated. The message will always be the same. At the moment I have
|
| Adding the rd, th etc to a date | 27 Oct 2004 22:44 GMT | 11 |
I want to make a date on a report look like a real date, that is, in England we say Tuesday 26th October 2004. Using the Format function, I can say Tuesday 26 October 2004 thus: Label2 = "Survey Closing : " & Format((dDate), "dddd dd MMMM YYYY")
|
| List boxes and Item Data Reference | 27 Oct 2004 09:28 GMT | 3 |
I have a question regarding referencing the ItemData property of List and Combo boxes. I tend to use the following code: If cmbFoo.ItemData(cmbFoo.ListIndex) = <blah>
|
| Cancel opening of form | 27 Oct 2004 01:59 GMT | 15 |
I want to be able to cancel the opening of a form if the recordset that the form is based on (datagrid datasource) doesn't have any records. In MS Access I would simply say Cancel = True. How can I do this in VB? Here is what I have so far but it doesn't work
|
| cancel form and variables in data environment | 26 Oct 2004 16:56 GMT | 2 |
I am a complete newbie so please bear with me . . . I have only one form in my project that displays 4 datagrid control totals based on designers that are base on paramaterised stored procedures in SQL Server. At the moment I have entered the values for the parameters but I
|
| VB and SQL | 26 Oct 2004 13:51 GMT | 1 |
I'm writing a macro in excel to create a pivot table but i want to be able to filter the pivot table for certain individuals and save each version as a seperate table. How can I incorporate SQL into the VB code so I can select certain fields
|
| Date format for SQL Server | 26 Oct 2004 08:50 GMT | 4 |
I have a stored procedure in SQL Server that requires a date parameter. I have a 2 public variables (Date Type) that give a datefrom and a dateto. The datefrom and dateto are derived using DateSerial. I believe that SQL needs the dates in "mm/dd/yyyy" format but the variables
|
| Better Way? | 25 Oct 2004 23:02 GMT | 13 |
For the life of me, someone tell me how to shorten this up to a better way....I have 13 check boxes on a form and have to scan thru them all to see if they are checked or not and assign the value futher down.... If Check1.Value = 1 Then
|
| output contents of a listbox to a sequential file | 25 Oct 2004 10:30 GMT | 4 |
how do you output the contents of listbox to a sequential file that looks like this John Kerry 1(800)555-9898 Bob Dilan 1(345)555-6789
|
| my vb reference in excel is not working | 23 Oct 2004 02:50 GMT | 1 |
I have a workbook that uses a macro to copy itself, save it to another file, then populates sheets with formulas and such. Everything works great until a look up statement. Below, I have pasted the troubling code in the macro. The referenced sheet,
|