J
Janetzky
Hi All,
I am still trying to find a solution to be used for splashing data into
an Access Cube. I have seven fields determining the data value (eg.
year, period, datatype, order, account, cost center, currency and
value). From an frontend i want to code a form to be able to splash
whole sections of the cube's data. I want to select criterias by using
comboboxes (cmd_cmb_splash_yr, cmd_cmb_splash_per etc.). The user
should be able to select on up to seven criterias. Based on this data
selection, he shall be able to manipulate the selected range of data by
using a second set of combo-boxes (cmd_cmb_copy_yr, cmd_cmb_copy_per
etc.). For instance copying all 2007 January data to make it 2008
August data. I realized already the select portion of the coding, which
looks as follows:
Sub DeleteCubedata()
Dim strSql As String
strSql = "DELETE * FROM Rawdata WHERE True"
If IsNull(Me.cmd_splash_cpy) Then
' proceed
Else
strSql = strSql & " AND [COMP]=" & Me.cmd_splash_cpy & "'"
End If
If IsNull(Me.cmd_splash_yr) Then
' proceed
Else
strSql = strSql & " AND [YEAR]=" & Me.cmd_splash_yr & "'"
End If
If IsNull(Me.cmd_splash_per) Then
' proceed
Else
strSql = strSql & " AND [PER]=" & Me.cmd_splash_per & "'"
End If
If IsNull(Me.cmd_splash_typ) Then
' proceed
Else
strSql = strSql & " AND [DATA]=" & Me.cmd_splash_typ & "'"
End If
If IsNull(Me.cmd_splash_cur) Then
' proceed
Else
strSql = strSql & " AND [CUR]=" & Me.cmd_splash_cur & "'"
End If
If IsNull(Me.cmd_splash_acc) Then
' proceed
Else
strSql = strSql & " AND [ACC]=" & Me.cmd_splash_acc
End If
If IsNull(Me.cmd_splash_cc) Then
' proceed
Else
strSql = strSql & " AND [ORD]=" & Me.cmd_splash_typ & "'"
If IsNull(Me.cmd_splash_ord) Then
' proceed
Else
strSql = strSql & " AND [ORD]=" & Me.cmd_splash_ord & "'"
End If
CurrentDb.Execute strSql, dbFailOnError
End Sub
I honestly don't have clue how to realize the functionality i need......
I am still trying to find a solution to be used for splashing data into
an Access Cube. I have seven fields determining the data value (eg.
year, period, datatype, order, account, cost center, currency and
value). From an frontend i want to code a form to be able to splash
whole sections of the cube's data. I want to select criterias by using
comboboxes (cmd_cmb_splash_yr, cmd_cmb_splash_per etc.). The user
should be able to select on up to seven criterias. Based on this data
selection, he shall be able to manipulate the selected range of data by
using a second set of combo-boxes (cmd_cmb_copy_yr, cmd_cmb_copy_per
etc.). For instance copying all 2007 January data to make it 2008
August data. I realized already the select portion of the coding, which
looks as follows:
Sub DeleteCubedata()
Dim strSql As String
strSql = "DELETE * FROM Rawdata WHERE True"
If IsNull(Me.cmd_splash_cpy) Then
' proceed
Else
strSql = strSql & " AND [COMP]=" & Me.cmd_splash_cpy & "'"
End If
If IsNull(Me.cmd_splash_yr) Then
' proceed
Else
strSql = strSql & " AND [YEAR]=" & Me.cmd_splash_yr & "'"
End If
If IsNull(Me.cmd_splash_per) Then
' proceed
Else
strSql = strSql & " AND [PER]=" & Me.cmd_splash_per & "'"
End If
If IsNull(Me.cmd_splash_typ) Then
' proceed
Else
strSql = strSql & " AND [DATA]=" & Me.cmd_splash_typ & "'"
End If
If IsNull(Me.cmd_splash_cur) Then
' proceed
Else
strSql = strSql & " AND [CUR]=" & Me.cmd_splash_cur & "'"
End If
If IsNull(Me.cmd_splash_acc) Then
' proceed
Else
strSql = strSql & " AND [ACC]=" & Me.cmd_splash_acc
End If
If IsNull(Me.cmd_splash_cc) Then
' proceed
Else
strSql = strSql & " AND [ORD]=" & Me.cmd_splash_typ & "'"
If IsNull(Me.cmd_splash_ord) Then
' proceed
Else
strSql = strSql & " AND [ORD]=" & Me.cmd_splash_ord & "'"
End If
CurrentDb.Execute strSql, dbFailOnError
End Sub
I honestly don't have clue how to realize the functionality i need......