How to connect to the ms access databse via a local network?

Got a LiveCode personal license? Are you a beginner, hobbyist or educator that's new to LiveCode? This forum is the place to go for help getting started. Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller

Post Reply
lemodizon
Posts: 175
Joined: Thu Apr 05, 2018 3:33 pm

How to connect to the ms access databse via a local network?

Post by lemodizon » Sat Dec 09, 2023 3:24 pm

Hi everyone,

Can anyone guide me on how can I access the database (ms access) on a local network?

I used ODBC 64bit but it doesn't connect via a local network see below the picture
odbc_ms access.png
and here is my code
I tried to changed runrev into the network path still there is error

Code: Select all

on mouseUp
   
   
   global gConnectionID
  
   
   put "runrev" into tDatabaseAddress
   put "livecodeTest" into tDatabaseName
   put "" into tDatabaseUser
   put "" into tDatabasePassword
   
   put revOpenDatabase("ODBC", "tDatabaseAddress", "tDatabaseName", "", "" ) into tResult
   
   --check if it worked and display an error message if it didn't
   -- & set the connection ID global
   if tResult is a number then
      put tResult into gConnectionID
      answer info "Connected to the database." & cr & "Connection ID = " & gConnectionID
   else
      put empty into gConnectionID
      answer error "Unable to connect to the database:" & cr & tResult
   end if
  
   
end mouseUp
hope you can help me thanks
Thank you & God Bless Everyone :wink:

Regards,
lemodizon

Post Reply

Return to “Getting Started with LiveCode - Complete Beginners”