How do you use version control with Access development?

后端 未结 20 1936
慢半拍i
慢半拍i 2020-11-22 12:55

I\'m involved with updating an Access solution. It has a good amount of VBA, a number of queries, a small amount of tables, and a few forms for data entry & report gene

20条回答
  •  没有蜡笔的小新
    2020-11-22 13:13

    I tried to help contribute to his answer by adding an export option for Queries within the access database. (With ample help from other SO answers)

    Dim def
    Set stream = fso.CreateTextFile(sExportpath & "\" & myName & ".queries.txt")
      For Each def In oApplication.CurrentDb.QueryDefs
    
        WScript.Echo "  Exporting Queries to Text..."
        stream.WriteLine("Name: " & def.Name)
        stream.WriteLine(def.SQL)
        stream.writeline "--------------------------"
        stream.writeline " "
    
      Next
    stream.Close
    

    Haven't be able to work that back into the 'compose' feature, but that's not what I need it to do right now.

    Note: I also added ".txt" to each of the exported file names in decompose.vbs so that the source control would immediately show me the file diffs.

    Hope that helps!


提交回复
热议问题