Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Calendar
  New Posts New Posts RSS Feed - Link to MS Access
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Link to MS Access

 Post Reply Post Reply
Author
Message
visualise01 View Drop Down
Newbie
Newbie


Joined: 20 September 2009
Location: United Kingdom
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote visualise01 Quote  Post ReplyReply Direct Link To This Post Topic: Link to MS Access
    Posted: 12 October 2009 at 1:10pm
Does anyone have any samples linking to a MS Access Database with VB. NET frontend?
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 13 October 2009 at 2:49pm
Our VB.NET calendar sample shows exactly how to do this.  Run the sample, choose File->Open and select MS Access Database.
Back to Top
visualise01 View Drop Down
Newbie
Newbie


Joined: 20 September 2009
Location: United Kingdom
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote visualise01 Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2009 at 2:29pm
There must be a simpler example availabe - I have used the code supplied with the examples, but cant get it to work.  All I want to do it be able to add new calendar events to the calendar and database and have existing events load into the calendar from the database, also have recurring work.

I dont want options to pick  datasource.

Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 16 October 2009 at 3:52pm
strConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source='C:\Program Files\Codejock Software\ActiveX\Xtreme SuitePro ActiveX v13.2.0\Samples\Calendar\events.mdb';"

                If CalendarControl.DataProvider.IsOpen Then
                    CalendarControl.DataProvider.Save()
                End If
                CalendarControl.SetDataProvider(strConnectionString)

                If Not CalendarControl.DataProvider.Open Then
                    If Not CalendarControl.DataProvider.Create Then
                        System.Diagnostics.Debug.Assert(False, "")
                    End If
                End If

                CalendarControl.Populate()


Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.187 seconds.