Hey guys,
I was wondering how could i replace this statement:
By this one:
the vbcrlf is a is a constant defined in vb.NET that represents the carriage return and the linefeed. I think i need to change this to access too........Im so lost here
Can anyone help ?
I was wondering how could i replace this statement:
strSql = "SELECT Avg([Value]) AS [" & FileName & "_AVG] FROM [" & FileName & "] WHERE ((([" & FileName & "].Date) Between #" & mindate & "# And #" & maxdate & "#));"
By this one:
I still think im missing a few details on the second code.strsql="select avg[Value] as all_Average from (" & vbcrlf
for i= 0 to filename.getupperbound(0)
strsql&="select " & filename(i) & ".Value as Value from " & filename(i) & " where date between Between #11/6/2003# And #11/7/2003#" & vbcrlf
if i<>flename.getupperbound(0) then strsql &="union" & vbcrlf
next i
strsql &=")"
the vbcrlf is a is a constant defined in vb.NET that represents the carriage return and the linefeed. I think i need to change this to access too........Im so lost here
Can anyone help ?
Last edited: