How create report in ms access using vba programming (1 Viewer)

postingart

New member
Local time
Today, 09:51
Joined
Jun 27, 2021
Messages
17
i want create report in ms access using vba programming ,

strSql = "Select cityID,cityName From tblCityInfo Order by cityID"
Set adoRS = Database.executeQuery(strSql)

If adoRS.EOF <> True Then

With .Sections("Dmembers").Controls
.Item("txtCode").DataField = adoRS.Fields(0).Name
.Item("txtName").DataField = adoRS.Fields(1).Name


End With
DRAreaInfo.Show
end if


please vb6 code convert into VBA ms access programming thanks
 

arnelgp

..forever waiting... waiting for jellybean!
Local time
Today, 12:51
Joined
May 7, 2009
Messages
19,229
create a Report in design view.
it is much easier than a bunch of code.
 

postingart

New member
Local time
Today, 09:51
Joined
Jun 27, 2021
Messages
17
create a Report in design view.
it is much easier than a bunch of code.
i want to create report in ms access using vba programming not in design mode
 

jdraw

Super Moderator
Staff member
Local time
Today, 00:51
Joined
Jan 23, 2006
Messages
15,379
Why? Is this an academic exercise?
The output from built in report wizard can be tweaked with vba.
I agree with arnelgp.
 

Users who are viewing this thread

Top Bottom