| | |
run time error 3705
Thread Solved |
I select a month from a combobox and type the year in maskeditbox then press a button to show the report. 1st the report show. when I select another month to show again the report then show a error msg: and then highlight the connection string.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
run-time error 3705 operation is not allowed when the object is open
I like sword. Attack or Defense.
•
•
Join Date: Jan 2008
Posts: 232
Reputation:
Solved Threads: 32
0
#2 31 Days Ago
First close your recordset. Re-open the recordset with the new date criteria and then refresh the grid.
Hope this helps Abu
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
RS.close RS.Open "......................." Grd.Refresh
Hope this helps Abu
Please mark questions as answered when done.
Be the ONE!!!
Be the ONE!!!
0
#3 31 Days Ago
I write code in the button in dataenvironment>command> I write code and the I connect the database in dataenvironment manually.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Private Sub cmdshow_Click() Dim str As String str = "01/" & cmbMonth.ListIndex + 1 & "/" & MaskEdBox1.Text dt = Format(str, "DD/MM/YYYY") If isLoad = True Then Unload dr1 Unload DataEnvironment1 Else isLoad = True End If DataEnvironment1.cmdmonth (dt) Unload Me Load dr1 dr1.Show
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
Select * from main Where Month(Date)=Month(dt) And Year(Date)=Year(dt) Order by Date Asc
I like sword. Attack or Defense.
0
#4 31 Days Ago
I just change it and now it is ok.
Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
If isLoad = false Then Unload dr1 Unload DataEnvironment1 Else isLoad = True End If
I like sword. Attack or Defense.
![]() |
Similar Threads
- Run-time error '5' (Windows NT / 2000 / XP)
- Run-Time Error 424 (Visual Basic 4 / 5 / 6)
- Run-time Error when printing Array Contents. (C)
- "Run time error, do you wish to debug?" (Web Browsers)
- Run-Time Error..? (Windows NT / 2000 / XP)
Other Threads in the Visual Basic 4 / 5 / 6 Forum
- Previous Thread: VB6 Resident monitor
- Next Thread: need help
| Thread Tools | Search this Thread |
* 6 429 2007 access activex add age application basic beginner birth bmp calculator cd cells.find click client code college component connection connectionproblemusingvb6usingoledb copy creat ctrl+f data database datareport date delete dissertations dissertationthesis dissertationtopic edit error excel excelmacro file filename form hardware header iamthwee image inboxinvb internetfiledownload keypress label listbox listview liveperson login looping machine microsoft movingranges number objectinsert open oracle password prime program prompt range-objects readfile reading record refresh remotesqlserverdatabase report save search sendbyte sites sort sql sql2008 sqlserver subroutine tags textbox time urldownloadtofile vb vb6 vb6.0 vba visual visualbasic visualbasic6 web window windows





