Forum: Visual Basic 4 / 5 / 6 16 Days Ago |
| Replies: 10 Views: 668 Hi!
I don't know how u have managed to assign the client number to a variable. but here is one way to do so.
when u execute the query using the Execute function, all the values retrieved are as a... |
Forum: Visual Basic 4 / 5 / 6 Jul 24th, 2009 |
| Replies: 5 Views: 344 if badge_id column a numeric, then omit the quotation marks for '1234' |
Forum: Visual Basic 4 / 5 / 6 Jul 24th, 2009 |
| Replies: 5 Views: 344 what is the error msg u r getting. |
Forum: Visual Basic 4 / 5 / 6 Dec 18th, 2008 |
| Replies: 2 Views: 419 rs.Open "Select PCODE from Product WHERE PCODE = '" & Trim(Text1.Text) & "'", cn, adOpenKeyset, adLockPessimistic
If rs.BOF = False Then
MsgBox "The Product Code is Already Exist!", vbCritical... |
Forum: Visual Basic 4 / 5 / 6 Dec 17th, 2008 |
| Replies: 2 Views: 532 First initialize all text boxes from txt1 to txt7 = ""
Then get the data from table using a query for sum of Stunden for different Taetigkeit and populate the textboxes.
Private Sub... |
Forum: Visual Basic 4 / 5 / 6 Dec 16th, 2008 |
| Replies: 10 Views: 808 Also checkout this link once. may get some tips
http://www.msaccesstips.com/2008/05/selected-list-box-items-and-dynamic.shtml |
Forum: Visual Basic 4 / 5 / 6 Dec 16th, 2008 |
| Replies: 10 Views: 808 Hi! At Last came up with some solution. Try this. Checkout the Attachment. |
Forum: Visual Basic 4 / 5 / 6 Dec 16th, 2008 |
| Replies: 10 Views: 808 Also i am unable to have a picture of your form and your exact requirement.
ZIP the file and Upload |
Forum: Visual Basic 4 / 5 / 6 Dec 16th, 2008 |
| Replies: 10 Views: 808 Not much clear with ur exact requirement. If u don't mind, plz upload the DB here. |
Forum: Visual Basic 4 / 5 / 6 Dec 16th, 2008 |
| Replies: 15 Views: 859 Dim x As Integer
Dim n As Integer
Dim i As Integer
Dim Tot As Double
x = Val(text1.text)
n = Val(Text2.text)
If n <=0 Or x <1 Then
MsgBox "Enter Proper... |
Forum: Visual Basic 4 / 5 / 6 Dec 16th, 2008 |
| Replies: 1 Views: 398 Dim x, n, i As Integer
Dim Tot As Double
x = Val(Text1.Text)
n = Val(Text2.Text)
If n <= 1 Or x <= 0 Then
MsgBox "Enter Proper Values", vbCritical
Exit Sub
... |
Forum: Visual Basic 4 / 5 / 6 Dec 16th, 2008 |
| Replies: 15 Views: 859 Dim x, n, i As Integer
Dim Tot As Double
x = Val(Text1.Text)
n = Val(Text2.Text)
If n <= 1 Or x <= 0 Then
MsgBox "Enter Proper Values", vbCritical
Exit Sub
... |
Forum: Visual Basic 4 / 5 / 6 Dec 16th, 2008 |
| Replies: 10 Views: 808 Is it in VB or MSAccess forms u r writing the code?
Please post the entire procedure which is not giving u the result. |
Forum: Visual Basic 4 / 5 / 6 Dec 12th, 2008 |
| Replies: 3 Views: 855 if u have 2 commands and want the 2nd command to run after a certain interval of time, u can use the timer control.
During design time; set its interval property to ur required time of pause (in... |
Forum: Visual Basic 4 / 5 / 6 Dec 9th, 2008 |
| Replies: 7 Views: 2,078 Vtemp = CurrentDb.OpenRecordset("SELECT MAX(CRID_INDEX.CRID_NUM) FROM CRID_INDEX")(0)
Here (0) is to return the value of the first field in the query and store it into Vtemp. If say u have more... |
Forum: Visual Basic 4 / 5 / 6 Dec 9th, 2008 |
| Replies: 6 Views: 833 Check out the following attachment. I have modified it as far and as much as i could understand. Hope this solves ur problem. |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 14 Views: 929 Private Sub Combo1_Click()
Set rs2 = New ADODB.Recordset
rs2.Open "select * from Product where pcode='" & Combo1.Text & "'", cn, adOpenKeyset, adLockPessimistic
Set... |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 10 Views: 1,641 for bold
.Shape.TextFrame.TextRange.Lines(1).Font.Bold = msoCTrue |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 10 Views: 1,641 Also add this line for center alignment of the Title in the cell.
.Shape.TextFrame.TextRange.Lines(1).ParagraphFormat.Alignment = ppAlignCenter |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 10 Views: 1,641 Add this line after setting the font size for underline
.Shape.TextFrame.TextRange.Lines(1).Font.Underline = msoCTrue |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 10 Views: 1,641 Dim iVar As Integer
For iVar = 1 To Slide1.Shapes.Count
If Slide1.Shapes(iVar).Type = msoTable Then
With Slide1.Shapes(iVar).Table.Cell(1, 1)
... |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 10 Views: 1,641 In the last post u can substitute any fontname and size in place of Tahoma and 20. |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 10 Views: 1,641 If you want this to be changed programmatically then here is the code
Dim iVar As Integer
'Here you may replace Slide1 with the name of your slide.
For iVar = 1 To... |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 10 Views: 1,641 Which Table Cell. Is it in MS-Access u want?
or
Is it any cell in the FlexGrid in VB? |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 14 Views: 929 Private Sub Combo1_Click()
Set rs2 = New ADODB.Recordset
rs2.Open "select * from Product where pcode='" & Combo1.Text & "'", cn, adOpenKeyset, adLockPessimistic
Set... |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 14 Views: 929 In the grd_Data_Loader() after opening the connection put this statement.
Set cn = New ADODB.Connection
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path &... |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 14 Views: 929 call grd_Data_Loader again after deleting the record |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 14 Views: 929 I think that the data type of your quantity field is text. you have to typecast it to number and then check for the records where quantity = 0 and delete them.
the following query will delete all... |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 14 Views: 929 R u getting any error from the procedure mentioned by you?
If yes then what is the error.
or may be try this
Open the query in Dynamic mode
rs1.Open "Select * from Soldto where cno='" &... |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 6 Views: 833 PLZ REFER THE ATTACHED PROJECT. I DON'T KNOW WHETHER I HAVE SATISFIED UR EXACT NEED / NOT.
I AM UPLOADING TWO DIFFERENT STYLES OF SOLUTIONS.
one with normal textboxes and another with an array... |
Forum: Visual Basic 4 / 5 / 6 Dec 8th, 2008 |
| Replies: 7 Views: 2,078 USE THE OBJECT CurrentDb.
Public Sub GetMaxCRID()
Dim Vtemp As Integer
On Error GoTo GetMaxCRID_Error |
Forum: Visual Basic 4 / 5 / 6 Dec 6th, 2008 |
| Replies: 6 Views: 833 Could not get your exact requirement from your post. plz use the below checklist to be more clear for your req.
1. Please can u give some test values for the values in the ListBox 1 (approx. 10-12... |
Forum: Visual Basic 4 / 5 / 6 Dec 6th, 2008 |
| Replies: 7 Views: 2,078 In which appliation R U writing VBA code? MS-Access or excel?
Where is the table from which u want to read the fields from? Is it an Excel Spreadsheet or an Access Database or some other DB?
... |
Forum: Visual Basic 4 / 5 / 6 Dec 2nd, 2008 |
| Replies: 9 Views: 2,812 The Logic for the removal of the related records in the database can be written just before the Remove event of the ListView. After all matched Items are done, U will have the database updated as... |
Forum: Visual Basic 4 / 5 / 6 Dec 2nd, 2008 |
| Replies: 9 Views: 2,812 Try this code
Dim iVal As Integer
Dim lCount As Integer
lCount = li.ListItems.Count
For iVal = 1 To lCount
If iVal > lCount Then Exit For |
Forum: Visual Basic 4 / 5 / 6 Dec 1st, 2008 |
| Replies: 9 Views: 2,812 U need not select the items to remove them.
Loop thru all the items in the listview with index for tracking the item against the loop variable. compare the values of each item and delete which... |
Forum: Visual Basic 4 / 5 / 6 Nov 8th, 2008 |
| Replies: 7 Views: 1,473 Dear Taher,
Your entire logic is correct. there is no mistake except for the fieldnames which u r using. they have a space in between. if u need to specify fieldnames which have space then use... |
Forum: Visual Basic 4 / 5 / 6 Oct 29th, 2008 |
| Replies: 11 Views: 1,843 I have just put a label outside the select case BLOCK to transfer the control outside of the select block once any case is executed. but it is not mandatory. YOU CAN OMIT THE GOTO STATEMENT
... |
Forum: Visual Basic 4 / 5 / 6 Oct 28th, 2008 |
| Replies: 11 Views: 1,843 Use Select Case
Select Case MSFlexGrid1.ColSel
Case 0:
form1.Text1.Text = MSFlexGrid1.TextMatrix(MSFlexGrid1.RowSel, MSFlexGrid1.ColSel)
goto Label1
Case 1:
... |
Forum: Visual Basic 4 / 5 / 6 Oct 28th, 2008 |
| Replies: 11 Views: 1,843 Can u attach the three forms? |