9/16/2023 0 Comments True dbgrid vb6 linkIf you upgraded to use ADO, then you could use the ADO equivalent (but not identical) of the DBGrid, which is the DataGrid. On that latter point, you have chosen to use the Data Report. You wish to print the contents of the DBGrid You are binding the DBGrid (which only uses DAO, or unbound) You are using DAO (I hope to get you using ADO, one day) You are using a Data Control (I hope to cure you of that bad habit one day) Here are my conclusion/assumptions from your OP (Original Post). The more information you give us, the more likely it is, that we can offer alternatives. Set DBGrid(1) = DataReport2(""select * from mas_rec where rc_no"") Label5.Caption = Str()ĭ = InputBox(""ENTER SECTION NAME"", ""FIND"")ĭata1.RecordSource = ""select * from mas_rec where sec_name='"" + d + ""'"" Label6.Caption = Ĭ = InputBox(""ENTER FILE NO"", ""FIND"")ĭata1.RecordSource = (""select * from mas_rec where rc_no='"" + c + ""'"") Set dbMasterRecords = OpenDatabase(""c:Program FilesMasterRecords.mdb"")ĭata1.RecordSource = ""select * from mas_rec"" Kindly help me what is the code to get the information shown in dbgrid in the datareport.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |