473,395 Members | 1,720 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

i need to export the infromation from msflexgrid1 to tbltransfer in my access.db

'..................................
sql = "SELECT * from tbltransfer2"
Set RecSet = dbAbbeytheatre.OpenRecordset(sql)

If Daynum = "" Then
RecSet.AddNew
'////////////////////////////////////////////
Dim I%, j%, strRowText$
With MSFlexGrid1

For I = 1 To .Rows + 1

strRowText = ""

For j = 1 To .cols + 1

strRowText = strRowText & .TextMatrix(I, j) & ";"
'////////////////////
RecSet!Daynum = MSFlexGrid1.Col = 1
RecSet!seatNum = MSFlexGrid1.Col = 2
RecSet!seatId = MSFlexGrid1.Col = 3
RecSet!BookDate = MSFlexGrid1.Col = 4
RecSet!BookedBy = MSFlexGrid1.Col = 5
RecSet!cost = MSFlexGrid1.Col = 6
RecSet.Update
'/////////////////////
Next j

Next I

End With
End If
Close #1
Dec 13 '10 #1
1 1553
smartchap
236 100+
In tbltransfer create fields as per name of columns in msflexgrid1. In a For..Next loop, starting from 1 to last row of msflexgrid1 export data of each column to fields of tbltransfer by using rs.AddNew and rs.Update (where rs is name of Recordset for tblTransfer).
Dec 18 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: Jim | last post by:
I am a FoxPro programmer. What software do I need to program using MS access... I have apps that are non-web standalone and some web based... Do you recommend any learning resources? ...
3
by: Mads Petersen | last post by:
I'm stuck in this code. Hope you can and will help me. I launch it from excel. I have made the following code work, but not as i whant. I need the ranges to be working with something like xlDown....
0
by: Tony_E | last post by:
Hello I am trying to export a Crystal Report (8.5) out of an ACCESS (2002) function. crxReport.ExportOptions.FormatType = crEFTExcel80 FlPth = "C:\Reports\CrystalReport" & ".xls"...
3
by: Sonu | last post by:
Greetings - I am trying to export a tbl from Access 2000 that has 26,544 records. When I export the tbl to Excel, it only exports out 16,384 records. It also creates a tbl that shows the data...
0
by: rcoutts | last post by:
I have a custom Access database that is a bulk mailing program for my small business to send emails to my customers (not spam!). Before sending mail, I export a folder in Outlook to an Access MDB...
1
by: Mindaugas | last post by:
I'm trying to help a client export some data from SQL 2005 to an Access database or even an Excel file. Either way I get an error like this: - Setting Destination Connection (Error) Messages...
2
by: =?Utf-8?B?YmJkb2J1ZGR5?= | last post by:
Hi, How do I export data from an Access query or table to a csv file? Thanks in advance
1
by: dbdevusr23 | last post by:
I am very new to writing code, and this is what I need to do: I have two Access reports, Report_1 and Report_2, that I need to export into an Excel spreadsheet, creating a tab for each report. I...
2
by: tbenchakroune | last post by:
How can I export Excel spreadsheets to Access db? Thanks, T.
3
by: jmarcrum | last post by:
I want to export a report (that contains two separate queries, 1. Current year data, and 2. split-year data) from access into excel, but everytime I run my code and export the data to excel, it looks...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.